pub struct Scratchpad { /* private fields */ }Expand description
Run-scoped typed storage shared by hooks. Clones share in-process state;
entries are neither serialized nor rewound when a run is forked.
Use HookContext::append_entry for state that must travel with the run.
Implementations§
Source§impl Scratchpad
impl Scratchpad
Sourcepub fn contains<T>(&self) -> boolwhere
T: WasmCompatSend + WasmCompatSync + 'static,
pub fn contains<T>(&self) -> boolwhere
T: WasmCompatSend + WasmCompatSync + 'static,
Whether a type is present.
Trait Implementations§
Source§impl Clone for Scratchpad
impl Clone for Scratchpad
Source§impl Debug for Scratchpad
impl Debug for Scratchpad
Auto Trait Implementations§
impl Freeze for Scratchpad
impl RefUnwindSafe for Scratchpad
impl Send for Scratchpad
impl Sync for Scratchpad
impl Unpin for Scratchpad
impl UnsafeUnpin for Scratchpad
impl UnwindSafe for Scratchpad
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