pub struct RunnerResult {
pub channel_id: ChannelId,
pub component_fqn: Cow<'static, str>,
pub snapshot: Option<ComponentSnapshot>,
pub exit_reason: ExitReason,
}Expand description
Returned by ChannelRunner::run() after the event loop exits and
the shutdown sequence completes. Contains the channel ID, component
FQN, and an optional snapshot captured during graceful shutdown.
Fields§
§channel_id: ChannelIdChannel ID this runner was bound to.
component_fqn: Cow<'static, str>Fully qualified name of the bound Component.
Cow::Borrowed for static FQNs (e.g. ClientRunner),
Cow::Owned for dynamic FQNs (e.g. ChannelRunner components).
snapshot: Option<ComponentSnapshot>Snapshot captured during shutdown (None if component doesn’t support snapshots).
exit_reason: ExitReasonWhy the runner exited its event loop.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunnerResult
impl RefUnwindSafe for RunnerResult
impl Send for RunnerResult
impl Sync for RunnerResult
impl Unpin for RunnerResult
impl UnsafeUnpin for RunnerResult
impl UnwindSafe for RunnerResult
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