Struct libafl_bolts::shmem::RcShMem
source · pub struct RcShMem<T: ShMemProvider> { /* private fields */ }
Expand description
A Reference Counted shared map,
that can use internal mutability.
Useful if the ShMemProvider
needs to keep local state.
Trait Implementations§
source§impl<T> AsMutSlice for RcShMem<T>where
T: ShMemProvider + Debug,
impl<T> AsMutSlice for RcShMem<T>where
T: ShMemProvider + Debug,
source§impl<T: ShMemProvider> Drop for RcShMem<T>
impl<T: ShMemProvider> Drop for RcShMem<T>
source§impl<T> ShMem for RcShMem<T>where
T: ShMemProvider + Debug,
impl<T> ShMem for RcShMem<T>where
T: ShMemProvider + Debug,
source§fn as_ptr_of<T: Sized>(&self) -> Option<*const T>
fn as_ptr_of<T: Sized>(&self) -> Option<*const T>
Convert to a ptr of a given type, checking the size.
If the map is too small, returns
None
source§fn as_mut_ptr_of<T: Sized>(&mut self) -> Option<*mut T>
fn as_mut_ptr_of<T: Sized>(&mut self) -> Option<*mut T>
Convert to a mut ptr of a given type, checking the size.
If the map is too small, returns
None
source§fn description(&self) -> ShMemDescription
fn description(&self) -> ShMemDescription
Get the description of the shared memory mapping
Auto Trait Implementations§
impl<T> Freeze for RcShMem<T>
impl<T> !RefUnwindSafe for RcShMem<T>
impl<T> !Send for RcShMem<T>
impl<T> !Sync for RcShMem<T>
impl<T> Unpin for RcShMem<T>
impl<T> !UnwindSafe for RcShMem<T>
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
source§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = 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)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.