Skip to main content

WorkerRecovery

Struct WorkerRecovery 

Source
pub struct WorkerRecovery<W>
where W: Behavior,
{ /* private fields */ }
Expand description

An uncommitted worker returned together with initialization actions that the host rejected before interpreting.

Implementations§

Source§

impl<W> WorkerRecovery<W>
where W: Behavior, StopOnShutdown<W>: Behavior<Protocol = W::Protocol, Ph = W::Ph, Birth = W::Birth>,

Source

pub fn into_retirement( self, ) -> (W, Actions<BehaviorAddr<W>, <W as Behavior>::Ph, <StopOnShutdown<W> as Behavior>::Sends, <W as Behavior>::Birth>)

Transfer both affine values to Bombay’s terminal custodian.

Trait Implementations§

Source§

impl<W> Debug for WorkerRecovery<W>
where W: Behavior, StopOnShutdown<W>: Behavior<Protocol = W::Protocol, Ph = W::Ph, Birth = W::Birth>,

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<W> Freeze for WorkerRecovery<W>
where W: Freeze, <W as Behavior>::Sends: Freeze, <W as Behavior>::Ph: Freeze,

§

impl<W> RefUnwindSafe for WorkerRecovery<W>

§

impl<W> Send for WorkerRecovery<W>
where W: Send, <W as Behavior>::Sends: Send, <W as Behavior>::Ph: Send, <<W as Behavior>::Birth as BirthMode>::Child: Send,

§

impl<W> Sync for WorkerRecovery<W>
where W: Sync, <W as Behavior>::Sends: Sync, <W as Behavior>::Ph: Sync, <<W as Behavior>::Birth as BirthMode>::Child: Sync,

§

impl<W> Unpin for WorkerRecovery<W>
where W: Unpin, <W as Behavior>::Sends: Unpin, <W as Behavior>::Ph: Unpin, <<W as Behavior>::Birth as BirthMode>::Child: Unpin,

§

impl<W> UnsafeUnpin for WorkerRecovery<W>

§

impl<W> UnwindSafe for WorkerRecovery<W>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.