#[repr(C)]pub struct PdActorContext {
pub vtable: *const PdHostVtable,
pub engine_cookie: *mut c_void,
}Expand description
Per-call context passed to every plugin actor lifecycle hook.
Plugin code receives a *mut PdActorContext in each lifecycle function.
Use the vtable to send messages, query time, or log.
The engine_cookie field is an opaque handle owned by the engine;
plugins must pass it unchanged to vtable functions and must never free it.
Fields§
§vtable: *const PdHostVtableEngine capability table. Always non-null during lifecycle calls.
Opaque per-actor engine handle. Treat as an opaque cookie.
Auto Trait Implementations§
impl Freeze for PdActorContext
impl RefUnwindSafe for PdActorContext
impl !Send for PdActorContext
impl !Sync for PdActorContext
impl Unpin for PdActorContext
impl UnsafeUnpin for PdActorContext
impl UnwindSafe for PdActorContext
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