Enum libwifi::error::Error[][src]

pub enum Error {
    UnhandledFrameSubtype(FrameControlVec<u8>),
    Failure(StringVec<u8>),
    Incomplete(String),
}

Variants

UnhandledFrameSubtype(FrameControlVec<u8>)

This library can’t parse all subtypes yet. If you hit a frame subtype that isn’t supported, this error will be thrown. The FrameControl header should be successfully parsed in all scenarios and can be used for debugging. The remaining data is passed as second parameter and can be used for debugging.

Failure(StringVec<u8>)
Incomplete(String)

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Err<Error<&'_ [u8]>>> for Error[src]

fn from(error: Err<Error<&[u8]>>) -> Self[src]

Manually specify the conversion from a nom::error::Error to our own error. We need this conversion, since we work with slices. If nom’s error is propagated through the program, we get lifetime issues as we can’t hold ownership of that slice and thereby require a ’static.

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.