Skip to main content

ShutdownCoordinatorEvent

Enum ShutdownCoordinatorEvent 

Source
pub enum ShutdownCoordinatorEvent<E: UserEvent, P> {
    Behavior(E),
    Plan(InstallShutdownPlan<P>),
    Requested(ShutdownRequested),
    ChildStopped(ChildStopped<E::Addr>),
    ChildRejected(ChildShutdownRejected),
}
Expand description

Event sum accepted by ShutdownCoordinator.

Variants§

§

Behavior(E)

§

Plan(InstallShutdownPlan<P>)

§

Requested(ShutdownRequested)

§

ChildStopped(ChildStopped<E::Addr>)

§

ChildRejected(ChildShutdownRejected)

Trait Implementations§

Source§

impl<E: UserEvent, P> ComposedEvent for ShutdownCoordinatorEvent<E, P>

Source§

type Inner = E

Source§

fn from_inner(event: E) -> Self

Source§

impl<E: UserEvent, P> EventIngress<Here, InstallShutdownPlan<P>> for ShutdownCoordinatorEvent<E, P>

Source§

fn ingress(value: InstallShutdownPlan<P>) -> Self

Construct the event selected for Source and Input.
Source§

impl<E: UserEvent, P> InjectEvent<ChildShutdownRejected, Here> for ShutdownCoordinatorEvent<E, P>

Source§

impl<E: UserEvent, P> InjectEvent<ChildStopped<<E as UserEvent>::Addr>, Here> for ShutdownCoordinatorEvent<E, P>

Source§

fn inject_at(value: ChildStopped<E::Addr>) -> Self

Source§

impl<E, P, Input, Path> InjectEvent<Input, Inside<Path>> for ShutdownCoordinatorEvent<E, P>
where E: UserEvent + InjectEvent<Input, Path>,

Source§

fn inject_at(input: Input) -> Self

Source§

impl<E: UserEvent, P> InjectEvent<InstallShutdownPlan<P>, Here> for ShutdownCoordinatorEvent<E, P>

Source§

impl<E: UserEvent, P> InjectEvent<ShutdownRequested, Here> for ShutdownCoordinatorEvent<E, P>

Source§

impl<E: UserEvent, P> UserEvent for ShutdownCoordinatorEvent<E, P>

Source§

type Addr = <E as UserEvent>::Addr

Source§

type Message = <E as UserEvent>::Message

Source§

fn user(from: Self::Addr, message: Self::Message) -> Self

Source§

fn into_user(self) -> Result<User<Self::Addr, Self::Message>, Self>

Errors Read more

Auto Trait Implementations§

§

impl<E, P> Freeze for ShutdownCoordinatorEvent<E, P>
where E: Freeze, P: Freeze, <E as UserEvent>::Addr: Freeze,

§

impl<E, P> RefUnwindSafe for ShutdownCoordinatorEvent<E, P>

§

impl<E, P> Send for ShutdownCoordinatorEvent<E, P>
where E: Send, P: Send, <E as UserEvent>::Addr: Send,

§

impl<E, P> Sync for ShutdownCoordinatorEvent<E, P>
where E: Sync, P: Sync, <E as UserEvent>::Addr: Sync,

§

impl<E, P> Unpin for ShutdownCoordinatorEvent<E, P>
where E: Unpin, P: Unpin, <E as UserEvent>::Addr: Unpin,

§

impl<E, P> UnsafeUnpin for ShutdownCoordinatorEvent<E, P>

§

impl<E, P> UnwindSafe for ShutdownCoordinatorEvent<E, P>

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.