Enum Error

Source
pub enum Error {
Show 15 variants NotEnoughBytes, IoError, NoSyncByte, ReversedStream, EnhancedCrc, NonSupportedTimescale, UnknownMessage, Utf8Error, MissingCRC, CorrupctBadCRC, IncompleteMessage(usize), NonSupportedMesssage(usize), NonSupportedSubRecord, TooLargeInternalLimitation, ClosedSourceMessage(ClosedSourceMeta),
}

Variants§

§

NotEnoughBytes

Not enough bytes available to continue decoding process

§

IoError

I/O error

§

NoSyncByte

Missing SYNC byte

§

ReversedStream

Library limitation: reversed streams are not supported

§

EnhancedCrc

Library limitation: enhanced CRC is not supported yet

§

NonSupportedTimescale

Found an unsupported timescale that we cannot interprate.

§

UnknownMessage

Found unknown message ID

§

Utf8Error

Error while attempting to interprate UTF-8 (invalid ASCII)

§

MissingCRC

Message is missing CRC field and cannot be verified

§

CorrupctBadCRC

Message corrupt: received CRC does not match expected CRC

§

IncompleteMessage(usize)

Incomplete message: need more data to complete

§

NonSupportedMesssage(usize)

Library limitation: not all open source Messages supported yet

§

NonSupportedSubRecord

Library limtation: not all subrecords supported yet

§

TooLargeInternalLimitation

Library limtation: should never happen, because this library will be designed to parse all open source [Message]s. This may happen as either we’re still in development (bad internal design) or for format that we still do not support (temporarily “ok”)

§

ClosedSourceMessage(ClosedSourceMeta)

Found closed source message

Trait Implementations§

Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.