Enum cpal::PauseStreamError
source · [−]pub enum PauseStreamError {
DeviceNotAvailable,
BackendSpecific {
err: BackendSpecificError,
},
}
Expand description
Errors that might occur when calling pause_stream
.
As of writing this, only macOS may immediately return an error while calling this method. This is because both the alsa and wasapi backends only enqueue these commands and do not process them immediately.
Variants
DeviceNotAvailable
The device associated with the stream is no longer available.
BackendSpecific
Fields
err: BackendSpecificError
See the BackendSpecificError
docs for more information about this error variant.
Trait Implementations
Performs the conversion.