@@ -89,7 +89,7 @@ impl From<BackendSpecificError> for DeviceNameError {
89
89
}
90
90
91
91
/// Error that can happen when enumerating the list of supported formats.
92
- #[ derive( Debug ) ]
92
+ #[ derive( Clone , Debug ) ]
93
93
pub enum SupportedStreamConfigsError {
94
94
/// The device no longer exists. This can happen if the device is disconnected while the
95
95
/// program is running.
@@ -119,7 +119,7 @@ impl From<BackendSpecificError> for SupportedStreamConfigsError {
119
119
}
120
120
121
121
/// 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 ) ]
123
123
pub enum DefaultStreamConfigError {
124
124
/// The device no longer exists. This can happen if the device is disconnected while the
125
125
/// program is running.
@@ -152,7 +152,7 @@ impl From<BackendSpecificError> for DefaultStreamConfigError {
152
152
}
153
153
}
154
154
/// Error that can happen when creating a [`Stream`](crate::Stream).
155
- #[ derive( Debug ) ]
155
+ #[ derive( Clone , Debug ) ]
156
156
pub enum BuildStreamError {
157
157
/// The device no longer exists. This can happen if the device is disconnected while the
158
158
/// program is running.
@@ -203,7 +203,7 @@ impl From<BackendSpecificError> for BuildStreamError {
203
203
/// As of writing this, only macOS may immediately return an error while calling this method. This
204
204
/// is because both the alsa and wasapi backends only enqueue these commands and do not process
205
205
/// them immediately.
206
- #[ derive( Debug ) ]
206
+ #[ derive( Clone , Debug ) ]
207
207
pub enum PlayStreamError {
208
208
/// The device associated with the stream is no longer available.
209
209
DeviceNotAvailable ,
@@ -235,7 +235,7 @@ impl From<BackendSpecificError> for PlayStreamError {
235
235
/// As of writing this, only macOS may immediately return an error while calling this method. This
236
236
/// is because both the alsa and wasapi backends only enqueue these commands and do not process
237
237
/// them immediately.
238
- #[ derive( Debug ) ]
238
+ #[ derive( Clone , Debug ) ]
239
239
pub enum PauseStreamError {
240
240
/// The device associated with the stream is no longer available.
241
241
DeviceNotAvailable ,
@@ -263,7 +263,7 @@ impl From<BackendSpecificError> for PauseStreamError {
263
263
}
264
264
265
265
/// Errors that might occur while a stream is running.
266
- #[ derive( Debug ) ]
266
+ #[ derive( Clone , Debug ) ]
267
267
pub enum StreamError {
268
268
/// The device no longer exists. This can happen if the device is disconnected while the
269
269
/// program is running.
0 commit comments