Enum lsynth::errors::LSynthError
source · [−]pub enum LSynthError {
InvalidWaveform(InvalidWaveformError),
InvalidChannel(InvalidChannelError),
UnevenBufferSlice(UnevenBufferSliceError),
}
Expand description
Errors that are returned when LSynth is given invalid instructions.
Variants
InvalidWaveform(InvalidWaveformError)
Attempted to send a command to set the channel to a waveform that does not exist.
InvalidChannel(InvalidChannelError)
Attempted to send a command to a channel that does not exist.
UnevenBufferSlice(UnevenBufferSliceError)
Attempted to fill a buffer with an odd number of samples.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LSynthError
impl Send for LSynthError
impl Sync for LSynthError
impl Unpin for LSynthError
impl UnwindSafe for LSynthError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more