pub struct InstanceCallbackContext {
pub instance_id: String,
pub runtime_handle: Handle,
pub log_registry: Arc<ComponentLogRegistry>,
pub update_tx: ComponentUpdateSender,
}Expand description
Per-source/reaction-instance callback context.
Created during SourceProxy.initialize() / ReactionProxy.initialize().
Uses the ComponentUpdateSender channel from the runtime context so
lifecycle events flow through the ComponentGraph update loop.
Fields§
§instance_id: StringThe DrasiLib instance ID.
runtime_handle: HandleHandle to the host tokio runtime for dispatching async callback work.
log_registry: Arc<ComponentLogRegistry>The global log registry.
update_tx: ComponentUpdateSenderChannel for status updates to the ComponentGraph.
Implementations§
Trait Implementations§
impl Send for InstanceCallbackContext
impl Sync for InstanceCallbackContext
Auto Trait Implementations§
impl Freeze for InstanceCallbackContext
impl !RefUnwindSafe for InstanceCallbackContext
impl Unpin for InstanceCallbackContext
impl UnsafeUnpin for InstanceCallbackContext
impl !UnwindSafe for InstanceCallbackContext
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