#[repr(C)]pub struct HostContextInner {
pub actor_id: ActorId,
pub is_strategy: bool,
}Expand description
Inner payload behind the opaque *const HostContext the host hands every
plug-in instance.
Fields§
§actor_id: ActorIdCanonical identifier of the host-side adapter that owns the plug-in instance. Looked up in the thread-local actor registry by the host vtable’s order-command thunks.
is_strategy: boolWhether the registered adapter is a strategy. The host’s order-command thunks reject calls coming from actor contexts because actors must not submit orders.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HostContextInner
impl RefUnwindSafe for HostContextInner
impl Send for HostContextInner
impl Sync for HostContextInner
impl Unpin for HostContextInner
impl UnsafeUnpin for HostContextInner
impl UnwindSafe for HostContextInner
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