#[non_exhaustive]pub enum SysExError {
MissingStart,
Unterminated,
EmptyBody,
TooLong {
len: usize,
max: usize,
},
HighBit {
index: usize,
byte: u8,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for SysExError
impl Clone for SysExError
Source§fn clone(&self) -> SysExError
fn clone(&self) -> SysExError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SysExError
Source§impl Debug for SysExError
impl Debug for SysExError
Source§impl Display for SysExError
impl Display for SysExError
impl Eq for SysExError
Source§impl Error for SysExError
impl Error for SysExError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<SysExError> for Error
impl From<SysExError> for Error
Source§fn from(source: SysExError) -> Self
fn from(source: SysExError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SysExError
impl PartialEq for SysExError
impl StructuralPartialEq for SysExError
Auto Trait Implementations§
impl Freeze for SysExError
impl RefUnwindSafe for SysExError
impl Send for SysExError
impl Sync for SysExError
impl Unpin for SysExError
impl UnsafeUnpin for SysExError
impl UnwindSafe for SysExError
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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