@@ -89,7 +89,7 @@ impl From<BackendSpecificError> for DeviceNameError {
8989}
9090
9191/// Error that can happen when enumerating the list of supported formats.
92- #[ derive( Debug ) ]
92+ #[ derive( Clone , Debug ) ]
9393pub enum SupportedStreamConfigsError {
9494 /// The device no longer exists. This can happen if the device is disconnected while the
9595 /// program is running.
@@ -119,7 +119,7 @@ impl From<BackendSpecificError> for SupportedStreamConfigsError {
119119}
120120
121121/// May occur when attempting to request the default input or output stream format from a [`Device`](crate::Device).
122- #[ derive( Debug ) ]
122+ #[ derive( Clone , Debug ) ]
123123pub enum DefaultStreamConfigError {
124124 /// The device no longer exists. This can happen if the device is disconnected while the
125125 /// program is running.
@@ -152,7 +152,7 @@ impl From<BackendSpecificError> for DefaultStreamConfigError {
152152 }
153153}
154154/// Error that can happen when creating a [`Stream`](crate::Stream).
155- #[ derive( Debug ) ]
155+ #[ derive( Clone , Debug ) ]
156156pub enum BuildStreamError {
157157 /// The device no longer exists. This can happen if the device is disconnected while the
158158 /// program is running.
@@ -203,7 +203,7 @@ impl From<BackendSpecificError> for BuildStreamError {
203203/// As of writing this, only macOS may immediately return an error while calling this method. This
204204/// is because both the alsa and wasapi backends only enqueue these commands and do not process
205205/// them immediately.
206- #[ derive( Debug ) ]
206+ #[ derive( Clone , Debug ) ]
207207pub enum PlayStreamError {
208208 /// The device associated with the stream is no longer available.
209209 DeviceNotAvailable ,
@@ -235,7 +235,7 @@ impl From<BackendSpecificError> for PlayStreamError {
235235/// As of writing this, only macOS may immediately return an error while calling this method. This
236236/// is because both the alsa and wasapi backends only enqueue these commands and do not process
237237/// them immediately.
238- #[ derive( Debug ) ]
238+ #[ derive( Clone , Debug ) ]
239239pub enum PauseStreamError {
240240 /// The device associated with the stream is no longer available.
241241 DeviceNotAvailable ,
@@ -263,7 +263,7 @@ impl From<BackendSpecificError> for PauseStreamError {
263263}
264264
265265/// Errors that might occur while a stream is running.
266- #[ derive( Debug ) ]
266+ #[ derive( Clone , Debug ) ]
267267pub enum StreamError {
268268 /// The device no longer exists. This can happen if the device is disconnected while the
269269 /// program is running.
0 commit comments