pub struct NoopComponent { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl Component for NoopComponent
impl Component for NoopComponent
Source§fn id(&self) -> &ComponentId
fn id(&self) -> &ComponentId
Returns the component’s identifier. Read more
Source§fn subscriptions(&self) -> &[EventCategory]
fn subscriptions(&self) -> &[EventCategory]
Returns the event categories this component subscribes to. Read more
Source§fn on_request(&mut self, request: &Request) -> Result<Value, ComponentError>
fn on_request(&mut self, request: &Request) -> Result<Value, ComponentError>
Handle an incoming request. Read more
Source§fn on_signal(&mut self, signal: &Signal) -> SignalResponse
fn on_signal(&mut self, signal: &Signal) -> SignalResponse
Handle an incoming signal. Read more
Source§fn subscription_entries(&self) -> Vec<SubscriptionEntry>
fn subscription_entries(&self) -> Vec<SubscriptionEntry>
Returns subscription entries with optional operation-level filtering. Read more
Source§fn status_detail(&self) -> Option<StatusDetail>
fn status_detail(&self) -> Option<StatusDetail>
Returns detailed status information. Read more
Source§fn init(&mut self, _config: &Value) -> Result<(), ComponentError>
fn init(&mut self, _config: &Value) -> Result<(), ComponentError>
Initialize the component with optional configuration. Read more
Source§fn runtime_hints(&self) -> RuntimeHints
fn runtime_hints(&self) -> RuntimeHints
Returns runtime hints for this component. Read more
Source§fn as_packageable(&self) -> Option<&dyn Packageable>
fn as_packageable(&self) -> Option<&dyn Packageable>
Returns this component as a
Packageable if supported. Read moreSource§fn as_packageable_mut(&mut self) -> Option<&mut dyn Packageable>
fn as_packageable_mut(&mut self) -> Option<&mut dyn Packageable>
Returns this component as a mutable
Packageable if supported. Read moreSource§fn set_emitter(&mut self, _emitter: Box<dyn Emitter>)
fn set_emitter(&mut self, _emitter: Box<dyn Emitter>)
Sets the event emitter for this component. Read more
Source§fn set_child_context(&mut self, _ctx: Box<dyn ChildContext>)
fn set_child_context(&mut self, _ctx: Box<dyn ChildContext>)
Sets the child context for this component. Read more
Source§fn snapshot(&self) -> Result<ComponentSnapshot, SnapshotError>
fn snapshot(&self) -> Result<ComponentSnapshot, SnapshotError>
Captures the component’s current state as a snapshot. Read more
Source§fn restore(
&mut self,
_snapshot: &ComponentSnapshot,
) -> Result<(), SnapshotError>
fn restore( &mut self, _snapshot: &ComponentSnapshot, ) -> Result<(), SnapshotError>
Restores the component’s state from a snapshot. Read more
Auto Trait Implementations§
impl Freeze for NoopComponent
impl RefUnwindSafe for NoopComponent
impl Send for NoopComponent
impl Sync for NoopComponent
impl Unpin for NoopComponent
impl UnsafeUnpin for NoopComponent
impl UnwindSafe for NoopComponent
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