pub struct NoopObserverHost;Expand description
Pass-through host — returns Ok(()) without invoking any observer
logic. Default when sandbox-backed observer is not feature-gated.
Implementations§
Trait Implementations§
Source§impl Clone for NoopObserverHost
impl Clone for NoopObserverHost
Source§fn clone(&self) -> NoopObserverHost
fn clone(&self) -> NoopObserverHost
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 NoopObserverHost
impl Debug for NoopObserverHost
Source§impl Default for NoopObserverHost
impl Default for NoopObserverHost
Source§fn default() -> NoopObserverHost
fn default() -> NoopObserverHost
Returns the “default value” for a type. Read more
Source§impl ObserverHost for NoopObserverHost
impl ObserverHost for NoopObserverHost
Source§fn invoke(&self, _ctx: &mut ObserverContext<'_>) -> Result<(), ObserverError>
fn invoke(&self, _ctx: &mut ObserverContext<'_>) -> Result<(), ObserverError>
Invoke the observer bound to this host against the supplied
context. Implementations may inspect
ctx.capabilities; they
may NOT — by construction — mutate any chain state. The return
is informational only; chain progression is unaffected.impl Copy for NoopObserverHost
Auto Trait Implementations§
impl Freeze for NoopObserverHost
impl RefUnwindSafe for NoopObserverHost
impl Send for NoopObserverHost
impl Sync for NoopObserverHost
impl Unpin for NoopObserverHost
impl UnsafeUnpin for NoopObserverHost
impl UnwindSafe for NoopObserverHost
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