pub struct ObserverContext<'b> {
pub capabilities: &'b [ObserverCapToken],
}Expand description
Observer execution context — opaque to observers themselves; managed
by the host. Carries only the capability set; observers are read-only
sinks and do not mutate the submission pipeline (cf. hook host’s
ExtraBytesBuilder thread).
Chain-non-affecting clause 2 enforcement (cryptographer-anchored):
this struct intentionally does NOT carry a reference to chain state,
chain head, or any Op-emit primitive. The borrow-checker enforces
that observer code can never construct a chain mutation through
ctx. Future field additions must preserve this invariant.
Fields§
§capabilities: &'b [ObserverCapToken]Capability tokens granted by the manifest for this observer invocation.
Trait Implementations§
Auto Trait Implementations§
impl<'b> Freeze for ObserverContext<'b>
impl<'b> RefUnwindSafe for ObserverContext<'b>
impl<'b> Send for ObserverContext<'b>
impl<'b> Sync for ObserverContext<'b>
impl<'b> Unpin for ObserverContext<'b>
impl<'b> UnsafeUnpin for ObserverContext<'b>
impl<'b> UnwindSafe for ObserverContext<'b>
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