Enum cpal::BuildStreamError
source · pub enum BuildStreamError {
DeviceNotAvailable,
StreamConfigNotSupported,
InvalidArgument,
StreamIdOverflow,
BackendSpecific {
err: BackendSpecificError,
},
}
Expand description
Error that can happen when creating a Stream
.
Variants§
DeviceNotAvailable
The device no longer exists. This can happen if the device is disconnected while the program is running.
StreamConfigNotSupported
The specified stream configuration is not supported.
InvalidArgument
We called something the C-Layer did not understand
On ALSA device functions called with a feature they do not support will yield this. E.g. Trying to use capture capabilities on an output only format yields this.
StreamIdOverflow
Occurs if adding a new Stream ID would cause an integer overflow.
BackendSpecific
Fields
See the BackendSpecificError
docs for more information about this error variant.
Trait Implementations§
source§impl Debug for BuildStreamError
impl Debug for BuildStreamError
source§impl Display for BuildStreamError
impl Display for BuildStreamError
source§impl Error for BuildStreamError
impl Error for BuildStreamError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BackendSpecificError> for BuildStreamError
impl From<BackendSpecificError> for BuildStreamError
source§fn from(err: BackendSpecificError) -> Self
fn from(err: BackendSpecificError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for BuildStreamError
impl Send for BuildStreamError
impl Sync for BuildStreamError
impl Unpin for BuildStreamError
impl UnwindSafe for BuildStreamError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more