Enum wmidi::FromBytesError [−][src]
pub enum FromBytesError { ChannelOutOfRange, NoBytes, NoSysExEndByte, NotEnoughBytes, UnexpectedEndSysExByte, UnexpectedNonSysExEndByte(u8), UnexpectedDataByte, UnexpectedStatusByte, NoteOutOfRange, DataByteOutOfRange, U14OutOfRange, }
Expand description
Midi decoding errors.
Variants
Expand description
The MIDI channel is not between 1 and 16 inclusive.
Expand description
No MIDI bytes were provided.
Expand description
A SysEx start byte was provided, but there was no corresponding SysEx end byte.
Expand description
Not enough data bytes for the specified MIDI message.
Expand description
Found a SysEx end byte, but there was no start byte.
UnexpectedNonSysExEndByte(u8)
Expand description
Found a status byte interleaved with SysEx data. SysEx messages should be a start byte, followed by data bytes, and ending in a end byte.
Expand description
The first byte of a midi message must be a status byte.
Expand description
Found a status byte, but expected a U7
data byte.
Expand description
Midi notes must be in the range [0, 127] inclusive.
Expand description
Data (U7) bytes must be between [0, 127] inclusive.
Expand description
Data (U14) bytes must be between [0x0000, 0x03FF] or [0, 16383] inclusive.
Trait Implementations
impl Clone for FromBytesError
[src]
impl Clone for FromBytesError
[src]fn clone(&self) -> FromBytesError
[src]
fn clone(&self) -> FromBytesError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for FromBytesError
[src]
impl Debug for FromBytesError
[src]impl Display for FromBytesError
[src]
impl Display for FromBytesError
[src]impl Error for FromBytesError
[src]
impl Error for FromBytesError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl PartialEq<FromBytesError> for FromBytesError
[src]
impl PartialEq<FromBytesError> for FromBytesError
[src]fn eq(&self, other: &FromBytesError) -> bool
[src]
fn eq(&self, other: &FromBytesError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &FromBytesError) -> bool
[src]
fn ne(&self, other: &FromBytesError) -> bool
[src]This method tests for !=
.
impl Copy for FromBytesError
[src]
impl Eq for FromBytesError
[src]
impl StructuralEq for FromBytesError
[src]
impl StructuralPartialEq for FromBytesError
[src]
Auto Trait Implementations
impl RefUnwindSafe for FromBytesError
impl Send for FromBytesError
impl Sync for FromBytesError
impl Unpin for FromBytesError
impl UnwindSafe for FromBytesError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more