pub enum Error {
Channel(Error),
Timer(Error),
VolumeNotSet,
VolumeOutOfRange,
LengthMismatch,
}Expand description
Errors from Buzzer
Variants§
Channel(Error)
Errors from channel::Error
Timer(Error)
Errors from timer::Error
VolumeNotSet
Error when the volume pin isn’t set and we try to use it
VolumeOutOfRange
When the volume level is out of range. Either too low or too high.
LengthMismatch
Sequence and timings slice aren’t of the same length
Trait Implementations§
Source§impl From<Error> for Error
Converts channel::Error into self::Error
impl From<Error> for Error
Converts channel::Error into self::Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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