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
ResourceCount
ResourceIterator
Allocation(Error)
Signal(Acquire)
Entropy(Errno)
WorkerBus
BusRead
StartupEvent(Startup)
RuntimeEvent
Drain(Drain)
ShutdownEvent(Shutdown)
WorkerFailed
WorkerSpawn
Poll(Errno)
TerminationWait(Errno)
HeartbeatDeadline(Range)
WatchReady(S)
WatchPulse(S)
WatchDrain(S)
Trait Implementations§
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>where
I: RefUnwindSafe,
NonZero<usize>: RefUnwindSafe,
NonZero<i32>: RefUnwindSafe,
NonZero<u32>: RefUnwindSafe,
S: RefUnwindSafe,
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>where
I: UnwindSafe,
NonZero<usize>: UnwindSafe,
NonZero<i32>: UnwindSafe,
NonZero<u32>: UnwindSafe,
S: UnwindSafe,
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