pub enum Error {
Show 13 variants
Serialize(String, ErrorBacktrace),
Compression(ErrorBacktrace),
File(Error, ErrorBacktrace),
EmptyOptional(String, ErrorBacktrace),
KeyNotFound(String, ErrorBacktrace),
Empty(String, ErrorBacktrace),
IteratorEnd(String, ErrorBacktrace),
NotImplemented(String, ErrorBacktrace),
IllegalState(String, ErrorBacktrace),
IllegalArgument(String, ErrorBacktrace),
Unsupported(String, ErrorBacktrace),
ShuttingDown,
Unknown(String, ErrorBacktrace),
}
Expand description
Main error struct for LibAFL
Variants
Serialize(String, ErrorBacktrace)
Serialization error
Compression(ErrorBacktrace)
Compression error
File(Error, ErrorBacktrace)
File related error
EmptyOptional(String, ErrorBacktrace)
Optional val was supposed to be set, but isn’t.
KeyNotFound(String, ErrorBacktrace)
Key not in Map
Empty(String, ErrorBacktrace)
No elements in the current item
IteratorEnd(String, ErrorBacktrace)
End of iteration
NotImplemented(String, ErrorBacktrace)
This is not supported (yet)
IllegalState(String, ErrorBacktrace)
You’re holding it wrong
IllegalArgument(String, ErrorBacktrace)
The argument passed to this method or function is not valid
Unsupported(String, ErrorBacktrace)
The performed action is not supported on the current platform
ShuttingDown
Shutting down, not really an error.
Unknown(String, ErrorBacktrace)
Something else happened
Implementations
sourceimpl Error
impl Error
sourcepub fn compression() -> Self
pub fn compression() -> Self
Compression error
sourcepub fn empty_optional<S>(arg: S) -> Selfwhere
S: Into<String>,
pub fn empty_optional<S>(arg: S) -> Selfwhere
S: Into<String>,
Optional val was supposed to be set, but isn’t.
sourcepub fn key_not_found<S>(arg: S) -> Selfwhere
S: Into<String>,
pub fn key_not_found<S>(arg: S) -> Selfwhere
S: Into<String>,
Key not in Map
sourcepub fn iterator_end<S>(arg: S) -> Selfwhere
S: Into<String>,
pub fn iterator_end<S>(arg: S) -> Selfwhere
S: Into<String>,
End of iteration
sourcepub fn not_implemented<S>(arg: S) -> Selfwhere
S: Into<String>,
pub fn not_implemented<S>(arg: S) -> Selfwhere
S: Into<String>,
This is not supported (yet)
sourcepub fn illegal_state<S>(arg: S) -> Selfwhere
S: Into<String>,
pub fn illegal_state<S>(arg: S) -> Selfwhere
S: Into<String>,
You’re holding it wrong
sourcepub fn illegal_argument<S>(arg: S) -> Selfwhere
S: Into<String>,
pub fn illegal_argument<S>(arg: S) -> Selfwhere
S: Into<String>,
The argument passed to this method or function is not valid
sourcepub fn shutting_down() -> Self
pub fn shutting_down() -> Self
Shutting down, not really an error.
sourcepub fn unsupported<S>(arg: S) -> Selfwhere
S: Into<String>,
pub fn unsupported<S>(arg: S) -> Selfwhere
S: Into<String>,
This operation is not supported on the current architecture or platform
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
sourcefn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
sourceimpl From<ParseIntError> for Error
impl From<ParseIntError> for Error
sourcefn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
sourceimpl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
sourcefn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
Converts to this type from the input type.
sourceimpl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
sourcefn from(err: TryFromSliceError) -> Self
fn from(err: TryFromSliceError) -> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
type PreprendResult = Tail
type PreprendResult = Tail
sourcefn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.