pub enum BinaryGcodeError {
TryFromSliceError,
InvalidMagic(u32),
InvalidChecksumType(u16),
InvalidChecksum(u32, u32),
UnsupportedBlockKind(u16),
UnsupportedEncoding(u16),
UnsupportedCompressionAlgorithm(u16),
EncodingError(u16),
Meatpack(MeatPackError),
SerialiseError(&'static str),
DevError(String),
}Expand description
An enum of errors that can occur when using the crate.
Variants§
TryFromSliceError
InvalidMagic(u32)
InvalidChecksumType(u16)
InvalidChecksum(u32, u32)
UnsupportedBlockKind(u16)
UnsupportedEncoding(u16)
UnsupportedCompressionAlgorithm(u16)
EncodingError(u16)
Meatpack(MeatPackError)
SerialiseError(&'static str)
DevError(String)
Trait Implementations§
Source§impl Debug for BinaryGcodeError
impl Debug for BinaryGcodeError
Source§impl Display for BinaryGcodeError
impl Display for BinaryGcodeError
Source§impl Error for BinaryGcodeError
impl Error for BinaryGcodeError
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<MeatPackError> for BinaryGcodeError
impl From<MeatPackError> for BinaryGcodeError
Source§fn from(source: MeatPackError) -> Self
fn from(source: MeatPackError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BinaryGcodeError
impl RefUnwindSafe for BinaryGcodeError
impl Send for BinaryGcodeError
impl Sync for BinaryGcodeError
impl Unpin for BinaryGcodeError
impl UnwindSafe for BinaryGcodeError
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