Struct puffin::put_registry::PutRegistry
source · pub struct PutRegistry<PB> {
factories: HashMap<String, Box<dyn Factory<PB>>>,
default_put: String,
}
Expand description
Registry for Factories. An instance of this is usually defined statically and then used throughout the fuzzer.
Fields§
§factories: HashMap<String, Box<dyn Factory<PB>>>
§default_put: String
Implementations§
source§impl<PB: ProtocolBehavior> PutRegistry<PB>
impl<PB: ProtocolBehavior> PutRegistry<PB>
pub fn new<SI, I, S>(puts: I, default: S) -> Self
pub fn default(&self) -> &dyn Factory<PB>
pub fn puts(&self) -> impl Iterator<Item = (&str, &dyn Factory<PB>)>
pub fn find_by_id<S: AsRef<str>>(&self, id: S) -> Option<&dyn Factory<PB>>
pub fn determinism_reseed_all_factories(&self)
Trait Implementations§
source§impl<PB: ProtocolBehavior> Clone for PutRegistry<PB>
impl<PB: ProtocolBehavior> Clone for PutRegistry<PB>
source§impl<PB: ProtocolBehavior> Debug for PutRegistry<PB>
impl<PB: ProtocolBehavior> Debug for PutRegistry<PB>
source§impl<PB: ProtocolBehavior> PartialEq for PutRegistry<PB>
impl<PB: ProtocolBehavior> PartialEq for PutRegistry<PB>
Auto Trait Implementations§
impl<PB> Freeze for PutRegistry<PB>
impl<PB> !RefUnwindSafe for PutRegistry<PB>
impl<PB> !Send for PutRegistry<PB>
impl<PB> !Sync for PutRegistry<PB>
impl<PB> Unpin for PutRegistry<PB>
impl<PB> !UnwindSafe for PutRegistry<PB>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.