Enum RemapError
pub enum RemapError<A: Arch> {
MemoryMappingCrossesPageBounds(usize),
CannotMapMemory(usize),
AdaptFailed,
RandomizationError(RandomizationError),
// some variants omitted
}
Expand description
Error that can be returned by StateGen::remap
.
Variants§
MemoryMappingCrossesPageBounds(usize)
The remapping causes a memory mapping to be mapped on to two separate pages
CannotMapMemory(usize)
The remapping causes a memory mapping to unmappable
AdaptFailed
Adapting the state with StateGen::adapt
failed.
RandomizationError(RandomizationError)
An error occurred while randomizing part of the state.
Trait Implementations§
§impl<A: Debug + Arch> Debug for RemapError<A>
impl<A: Debug + Arch> Debug for RemapError<A>
§impl<A: Arch> Display for RemapError<A>
impl<A: Arch> Display for RemapError<A>
§impl<A: Arch> Error for RemapError<A>
impl<A: Arch> Error for RemapError<A>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl<A: Arch> From<RandomizationError> for RemapError<A>
impl<A: Arch> From<RandomizationError> for RemapError<A>
§fn from(e: RandomizationError) -> Self
fn from(e: RandomizationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<A> Freeze for RemapError<A>where
A: Freeze,
impl<A> RefUnwindSafe for RemapError<A>where
A: RefUnwindSafe,
impl<A> Send for RemapError<A>
impl<A> Sync for RemapError<A>
impl<A> Unpin for RemapError<A>where
A: Unpin,
impl<A> UnwindSafe for RemapError<A>where
A: UnwindSafe,
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
Mutably borrows from an owned value. Read more
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more