Enum libafl::Error[][src]

pub enum Error {
    Serialize(String),
    Compression(String),
    File(Error),
    EmptyOptional(String),
    KeyNotFound(String),
    Empty(String),
    IteratorEnd(String),
    NotImplemented(String),
    IllegalState(String),
    IllegalArgument(String),
    ShuttingDown,
    Unknown(String),
}
Expand description

Main error struct for AFL

Variants

Serialize(String)

Serialization error

Compression(String)

Compression error

File(Error)

File related error

EmptyOptional(String)

Optional val was supposed to be set, but isn’t.

KeyNotFound(String)

Key not in Map

Empty(String)

No elements in the current item

IteratorEnd(String)

End of iteration

NotImplemented(String)

This is not supported (yet)

IllegalState(String)

You’re holding it wrong

IllegalArgument(String)

The argument passed to this method or function is not valid

ShuttingDown

Shutting down, not really an error.

Unknown(String)

Something else happened

Trait Implementations

impl Debug for Error[src]

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

Formats the value using the given formatter. Read more

impl Display for Error[src]

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

Formats the value using the given formatter. Read more

impl From<CompressionError> for Error[src]

fn from(err: CompressionError) -> Self[src]

Performs the conversion.

impl From<Error> for Error[src]

Stringify the postcard serializer error

fn from(err: Error) -> Self[src]

Performs the conversion.

impl From<Error> for Error[src]

Stringify the json serializer error

fn from(err: Error) -> Self[src]

Performs the conversion.

impl From<Error> for Error[src]

fn from(err: Error) -> Self[src]

Performs the conversion.

impl From<Error> for Error[src]

Create an AFL Error from io Error

fn from(err: Error) -> Self[src]

Performs the conversion.

impl From<FromUtf8Error> for Error[src]

fn from(err: FromUtf8Error) -> Self[src]

Performs the conversion.

impl From<ParseIntError> for Error[src]

fn from(err: ParseIntError) -> Self[src]

Performs the conversion.

impl From<VarError> for Error[src]

fn from(err: VarError) -> Self[src]

Performs the conversion.

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<Tail, T> Prepend<T> for Tail[src]

type PreprendResult = Tail

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry. Read more

pub fn prepend(Self, T) -> (T, <Tail as Prepend<T>>::PreprendResult)[src]

Prepend a value to this tuple, returning a new tuple with prepended value.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

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.

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

Performs the conversion.

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.

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

Performs the conversion.