Skip to main content

Cause

Enum Cause 

Source
pub enum Cause<S, I = Infallible> {
Show 20 variants Replica { cpu: Cpu, cause: I, }, ResourceCount { actual: usize, required: NonZeroUsize, }, ResourceIterator { yielded: usize, required: NonZeroUsize, }, Allocation(Error), Signal(Acquire), Entropy(Errno), WorkerBus { cpu: Cpu, source: Error, }, BusRead { cpu: Cpu, source: Read, }, StartupEvent(Startup), RuntimeEvent { cpu: Cpu, event: Event, }, Drain(Drain), ShutdownEvent(Shutdown), WorkerFailed { cpu: Cpu, }, WorkerSpawn { cpu: Cpu, source: Error, }, Poll(Errno), TerminationWait(Errno), HeartbeatDeadline(Range), WatchReady(S), WatchPulse(S), WatchDrain(S),
}
Expand description

One process-control failure observed before worker return completes.

Variants§

§

Replica

Fields

§cpu: Cpu
§cause: I
§

ResourceCount

Fields

§actual: usize
§required: NonZeroUsize
§

ResourceIterator

Fields

§yielded: usize
§required: NonZeroUsize
§

Allocation(Error)

§

Signal(Acquire)

§

Entropy(Errno)

§

WorkerBus

Fields

§cpu: Cpu
§source: Error
§

BusRead

Fields

§cpu: Cpu
§source: Read
§

StartupEvent(Startup)

§

RuntimeEvent

Fields

§cpu: Cpu
§event: Event
§

Drain(Drain)

§

ShutdownEvent(Shutdown)

§

WorkerFailed

Fields

§cpu: Cpu
§

WorkerSpawn

Fields

§cpu: Cpu
§source: Error
§

Poll(Errno)

§

TerminationWait(Errno)

§

HeartbeatDeadline(Range)

§

WatchReady(S)

§

WatchPulse(S)

§

WatchDrain(S)

Trait Implementations§

Source§

impl<S: Debug, I: Debug> Debug for Cause<S, I>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<S, W, I> From<Cause<S, I>> for Error<S, W, I>

Source§

fn from(cause: Cause<S, I>) -> Self

Converts to this type from the input type.
Source§

impl<S, I> From<Error> for Cause<S, I>

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<S, I> Forget for Cause<S, I>

§

impl<S, I> Freeze for Cause<S, I>

§

impl<S, I> Move for Cause<S, I>

§

impl<S, I> RefUnwindSafe for Cause<S, I>

§

impl<S, I> Send for Cause<S, I>

§

impl<S, I> Sync for Cause<S, I>

§

impl<S, I> Unpin for Cause<S, I>

§

impl<S, I> UnsafeUnpin for Cause<S, I>
where I: UnsafeUnpin, NonZeroUsizeInner: UnsafeUnpin, NonZeroI32Inner: UnsafeUnpin, NonZeroU32Inner: UnsafeUnpin, S: UnsafeUnpin,

§

impl<S, I> UnwindSafe for Cause<S, I>

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<L, R> Convert<Either<L, R>, 1> for L

Source§

fn into(self) -> Either<L, R>

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<L, R> Convert<Either<L, R>, 2> for R

Source§

fn into(self) -> Either<L, R>

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.