Enum libafl::Error

source ·
pub enum Error {
Show 13 variants Serialize(StringErrorBacktrace), Compression(ErrorBacktrace), File(ErrorErrorBacktrace), EmptyOptional(StringErrorBacktrace), KeyNotFound(StringErrorBacktrace), Empty(StringErrorBacktrace), IteratorEnd(StringErrorBacktrace), NotImplemented(StringErrorBacktrace), IllegalState(StringErrorBacktrace), IllegalArgument(StringErrorBacktrace), Unsupported(StringErrorBacktrace), ShuttingDown, Unknown(StringErrorBacktrace),
}
Expand description

Main error struct for LibAFL

Variants§

§

Serialize(StringErrorBacktrace)

Serialization error

§

Compression(ErrorBacktrace)

Compression error

§

File(ErrorErrorBacktrace)

File related error

§

EmptyOptional(StringErrorBacktrace)

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

§

KeyNotFound(StringErrorBacktrace)

Key not in Map

§

Empty(StringErrorBacktrace)

No elements in the current item

§

IteratorEnd(StringErrorBacktrace)

End of iteration

§

NotImplemented(StringErrorBacktrace)

This is not supported (yet)

§

IllegalState(StringErrorBacktrace)

You’re holding it wrong

§

IllegalArgument(StringErrorBacktrace)

The argument passed to this method or function is not valid

§

Unsupported(StringErrorBacktrace)

The performed action is not supported on the current platform

§

ShuttingDown

Shutting down, not really an error.

§

Unknown(StringErrorBacktrace)

Something else happened

Implementations§

source§

impl Error

source

pub fn serialize<S>(arg: S) -> Selfwhere
    S: Into<String>,

Serialization error

source

pub fn compression() -> Self

Compression error

source

pub fn file(arg: Error) -> Self

File related error

source

pub fn empty_optional<S>(arg: S) -> Selfwhere
    S: Into<String>,

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

source

pub fn key_not_found<S>(arg: S) -> Selfwhere
    S: Into<String>,

Key not in Map

source

pub fn empty<S>(arg: S) -> Selfwhere
    S: Into<String>,

No elements in the current item

source

pub fn iterator_end<S>(arg: S) -> Selfwhere
    S: Into<String>,

End of iteration

source

pub fn not_implemented<S>(arg: S) -> Selfwhere
    S: Into<String>,

This is not supported (yet)

source

pub fn illegal_state<S>(arg: S) -> Selfwhere
    S: Into<String>,

You’re holding it wrong

source

pub fn illegal_argument<S>(arg: S) -> Selfwhere
    S: Into<String>,

The argument passed to this method or function is not valid

source

pub fn shutting_down() -> Self

Shutting down, not really an error.

source

pub fn unsupported<S>(arg: S) -> Selfwhere
    S: Into<String>,

This operation is not supported on the current architecture or platform

source

pub fn unknown<S>(arg: S) -> Selfwhere
    S: Into<String>,

Something else happened

Trait Implementations§

source§

impl Debug for Error

source§

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

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

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

Formats the value using the given formatter. Read more
source§

impl Error for Error

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<Errno> for Error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

Stringify the postcard serializer error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

Stringify the json serializer error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

Create an AFL Error from io Error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<FromUtf8Error> for Error

source§

fn from(err: FromUtf8Error) -> Self

Converts to this type from the input type.
source§

impl From<ParseIntError> for Error

source§

fn from(err: ParseIntError) -> Self

Converts to this type from the input type.
source§

impl From<TryFromIntError> for Error

source§

fn from(err: TryFromIntError) -> Self

Converts to this type from the input type.
source§

impl From<TryFromSliceError> for Error

source§

fn from(err: TryFromSliceError) -> Self

Converts to this type from the input type.
source§

impl From<VarError> for Error

source§

fn from(err: VarError) -> Self

Converts to this type from the input type.

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§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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<Tail, T> Prepend<T> for Tail

§

type PreprendResult = Tail

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

fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)

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

impl<E> Provider for Ewhere
    E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
source§

impl<T> ToString for Twhere
    T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.