Enum libafl_bolts::Error
source · pub enum Error {
Show 13 variants
Serialize(String, ErrorBacktrace),
Compression(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,
OsError(Error, String, ErrorBacktrace),
Unknown(String, ErrorBacktrace),
}
Expand description
Main error struct for LibAFL
Variants§
Serialize(String, ErrorBacktrace)
Serialization error
Compression(ErrorBacktrace)
Compression 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.
OsError(Error, String, ErrorBacktrace)
OS error, wrapping a std::io::Error
Unknown(String, ErrorBacktrace)
Something else happened
Implementations§
source§impl Error
impl Error
sourcepub fn compression() -> Self
pub fn compression() -> Self
Compression error
sourcepub fn empty_optional<S>(arg: S) -> Self
pub fn empty_optional<S>(arg: S) -> Self
Optional val was supposed to be set, but isn’t.
sourcepub fn key_not_found<S>(arg: S) -> Self
pub fn key_not_found<S>(arg: S) -> Self
Key not in Map
sourcepub fn iterator_end<S>(arg: S) -> Self
pub fn iterator_end<S>(arg: S) -> Self
End of iteration
sourcepub fn not_implemented<S>(arg: S) -> Self
pub fn not_implemented<S>(arg: S) -> Self
This is not supported (yet)
sourcepub fn illegal_state<S>(arg: S) -> Self
pub fn illegal_state<S>(arg: S) -> Self
You’re holding it wrong
sourcepub fn illegal_argument<S>(arg: S) -> Self
pub fn illegal_argument<S>(arg: S) -> Self
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) -> Self
pub fn unsupported<S>(arg: S) -> Self
This operation is not supported on the current architecture or platform
sourcepub fn last_os_error<S>(msg: S) -> Self
pub fn last_os_error<S>(msg: S) -> Self
OS error from std::io::Error::last_os_error
with additional message
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<BorrowError> for Error
impl From<BorrowError> for Error
source§fn from(err: BorrowError) -> Self
fn from(err: BorrowError) -> Self
source§impl From<BorrowMutError> for Error
impl From<BorrowMutError> for Error
source§fn from(err: BorrowMutError) -> Self
fn from(err: BorrowMutError) -> Self
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
source§impl From<SetLoggerError> for Error
impl From<SetLoggerError> for Error
source§fn from(err: SetLoggerError) -> Self
fn from(err: SetLoggerError) -> Self
source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
source§fn from(err: TryFromSliceError) -> Self
fn from(err: TryFromSliceError) -> Self
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
TupleList
, of an Prepend::prepend()
call,
including the prepended entry.