Trait libafl::state::HasMetadata
source · pub trait HasMetadata {
fn metadata(&self) -> &SerdeAnyMap;
fn metadata_mut(&mut self) -> &mut SerdeAnyMap;
fn add_metadata<M>(&mut self, meta: M)
where
M: SerdeAny,
{ ... }
fn has_metadata<M>(&self) -> bool
where
M: SerdeAny,
{ ... }
}
Expand description
Trait for elements offering metadata
Required Methods§
sourcefn metadata(&self) -> &SerdeAnyMap
fn metadata(&self) -> &SerdeAnyMap
A map, storing all metadata
sourcefn metadata_mut(&mut self) -> &mut SerdeAnyMap
fn metadata_mut(&mut self) -> &mut SerdeAnyMap
A map, storing all metadata (mutable)
Provided Methods§
sourcefn add_metadata<M>(&mut self, meta: M)where
M: SerdeAny,
fn add_metadata<M>(&mut self, meta: M)where
M: SerdeAny,
Add a metadata to the metadata map
sourcefn has_metadata<M>(&self) -> boolwhere
M: SerdeAny,
fn has_metadata<M>(&self) -> boolwhere
M: SerdeAny,
Check for a metadata