pub struct HostContext { /* private fields */ }Expand description
Opaque per-instance context the host supplies at plug-in creation.
The host attaches a unique context to each actor or strategy instance so
that host services that need attribution (logging targets, order
commands, cache scoping) can resolve back to the correct caller without
the plug-in needing to know any host identifiers. The plug-in only ever
passes the pointer through to the relevant HostVTable entry.
Auto Trait Implementations§
impl Freeze for HostContext
impl RefUnwindSafe for HostContext
impl Send for HostContext
impl Sync for HostContext
impl Unpin for HostContext
impl UnsafeUnpin for HostContext
impl UnwindSafe for HostContext
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