pub struct NoopHookHost;Expand description
Pass-through host — returns Ok(()) without mutating extra bytes.
The Hook host box in the contract diagram runs this implementation when
the runtime is not configured for sandbox-backed hooks.
Implementations§
Source§impl NoopHookHost
impl NoopHookHost
Trait Implementations§
Source§impl Clone for NoopHookHost
impl Clone for NoopHookHost
Source§fn clone(&self) -> NoopHookHost
fn clone(&self) -> NoopHookHost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoopHookHost
impl Debug for NoopHookHost
Source§impl Default for NoopHookHost
impl Default for NoopHookHost
Source§fn default() -> NoopHookHost
fn default() -> NoopHookHost
Returns the “default value” for a type. Read more
Source§impl HookHost for NoopHookHost
impl HookHost for NoopHookHost
impl Copy for NoopHookHost
Auto Trait Implementations§
impl Freeze for NoopHookHost
impl RefUnwindSafe for NoopHookHost
impl Send for NoopHookHost
impl Sync for NoopHookHost
impl Unpin for NoopHookHost
impl UnsafeUnpin for NoopHookHost
impl UnwindSafe for NoopHookHost
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