pub struct RuntimeCommsDrainHandle { /* private fields */ }Expand description
Runtime-backed CommsDrainHandle impl.
Routes every trait method to the corresponding DSL input / signal on a dedicated per-session MeerkatMachine DSL authority.
Implementations§
Trait Implementations§
Source§impl CommsDrainHandle for RuntimeCommsDrainHandle
impl CommsDrainHandle for RuntimeCommsDrainHandle
Source§fn ensure_drain_running(&self) -> Result<(), DslTransitionError>
fn ensure_drain_running(&self) -> Result<(), DslTransitionError>
Fire the
EnsureDrainRunning signal — lazy spawn path.Source§fn spawn_drain(&self, mode: DrainMode) -> Result<(), DslTransitionError>
fn spawn_drain(&self, mode: DrainMode) -> Result<(), DslTransitionError>
Fire the
SpawnDrain { mode } input — explicit spawn with typed mode.Source§fn stop_drain(&self) -> Result<(), DslTransitionError>
fn stop_drain(&self) -> Result<(), DslTransitionError>
Fire the
StopDrain input.Source§fn drain_exited_clean(&self) -> Result<(), DslTransitionError>
fn drain_exited_clean(&self) -> Result<(), DslTransitionError>
Fire the
DrainExitedClean input (drain stopped without failure).Source§fn drain_exited_respawnable(&self) -> Result<(), DslTransitionError>
fn drain_exited_respawnable(&self) -> Result<(), DslTransitionError>
Fire the
DrainExitedRespawnable input (drain exited and can be respawned).Source§fn notify_drain_exited(
&self,
reason: DrainExitReason,
) -> Result<(), DslTransitionError>
fn notify_drain_exited( &self, reason: DrainExitReason, ) -> Result<(), DslTransitionError>
Fire the
NotifyDrainExited { reason } input with a typed reason.Auto Trait Implementations§
impl Freeze for RuntimeCommsDrainHandle
impl RefUnwindSafe for RuntimeCommsDrainHandle
impl Send for RuntimeCommsDrainHandle
impl Sync for RuntimeCommsDrainHandle
impl Unpin for RuntimeCommsDrainHandle
impl UnsafeUnpin for RuntimeCommsDrainHandle
impl UnwindSafe for RuntimeCommsDrainHandle
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