pub struct Context<'msg> {
pub actor: Option<&'msg str>,
pub span: Option<String>,
}Expand description
Context - message passing metadata used by wasmhost Actors and Capability Providers
Fields§
§actor: Option<&'msg str>Messages received by Context Provider will have actor set to the actor’s public key
span: Option<String>Span name/context for tracing. This is a placeholder for now
Trait Implementations§
Auto Trait Implementations§
impl<'msg> Freeze for Context<'msg>
impl<'msg> RefUnwindSafe for Context<'msg>
impl<'msg> Send for Context<'msg>
impl<'msg> Sync for Context<'msg>
impl<'msg> Unpin for Context<'msg>
impl<'msg> UnwindSafe for Context<'msg>
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