Skip to main content

Cause

Enum Cause 

Source
pub enum Cause<S> {
Show 15 variants Config(Error), Allocation(Error), Signal(Acquire), Entropy(Errno), WorkerBus { cpu: Cpu, source: Create, }, BusRead { cpu: Cpu, source: Read, }, BusState(State), WorkerFailed { cpu: Cpu, }, WorkerMissing { cpu: Cpu, }, WorkerSpawn { cpu: Cpu, source: Error, }, Poll(Errno), TerminationWait(<Source<'static> as Signal>::Error), WatchReady(S), WatchPulse(S), WatchDrain(S),
}
Expand description

One process-control failure observed before worker return completes.

Variants§

§

Config(Error)

§

Allocation(Error)

§

Signal(Acquire)

§

Entropy(Errno)

§

WorkerBus

Fields

§cpu: Cpu
§source: Create
§

BusRead

Fields

§cpu: Cpu
§source: Read
§

BusState(State)

§

WorkerFailed

Fields

§cpu: Cpu
§

WorkerMissing

Fields

§cpu: Cpu
§

WorkerSpawn

Fields

§cpu: Cpu
§source: Error
§

Poll(Errno)

§

TerminationWait(<Source<'static> as Signal>::Error)

§

WatchReady(S)

§

WatchPulse(S)

§

WatchDrain(S)

Trait Implementations§

Source§

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

Source§

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

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

impl<'r, S, W> From<Cause<S>> for Error<'r, S, W>

Source§

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

Converts to this type from the input type.
Source§

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

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<S> Freeze for Cause<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for Cause<S>
where S: RefUnwindSafe,

§

impl<S> Send for Cause<S>
where S: Send,

§

impl<S> Sync for Cause<S>
where S: Sync,

§

impl<S> Unpin for Cause<S>
where S: Unpin,

§

impl<S> UnsafeUnpin for Cause<S>
where S: UnsafeUnpin,

§

impl<S> UnwindSafe for Cause<S>
where S: UnwindSafe,

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> Convert<T> for T

Source§

fn into(self) -> T

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.