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
err: BackendSpecificError
See the BackendSpecificError
docs for more information about this error variant.
Trait Implementations
Performs the conversion.