pub struct WorkerCreationResolved<N> {
pub proxy: N,
pub worker: N,
pub kind: CreationKind<N>,
pub result: Result<(), CreationRejection>,
}Expand description
A worker creation result reported by a still-live supervised proxy.
Fields§
§proxy: N§worker: N§kind: CreationKind<N>§result: Result<(), CreationRejection>Implementations§
Source§impl<N> WorkerCreationResolved<N>
impl<N> WorkerCreationResolved<N>
pub const fn new( proxy: N, worker: N, kind: CreationKind<N>, result: Result<(), CreationRejection>, ) -> Self
Sourcepub fn into_replacement(self) -> Option<ReplacementResolution<N>>
pub fn into_replacement(self) -> Option<ReplacementResolution<N>>
Project a replacement result without conflating ordinary birth with replacement or inferring provenance from nonce arithmetic.
Trait Implementations§
Source§impl<N: Clone> Clone for WorkerCreationResolved<N>
impl<N: Clone> Clone for WorkerCreationResolved<N>
Source§fn clone(&self) -> WorkerCreationResolved<N>
fn clone(&self) -> WorkerCreationResolved<N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<N: Debug> Debug for WorkerCreationResolved<N>
impl<N: Debug> Debug for WorkerCreationResolved<N>
Source§impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for ProxyEvent<E>
impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for ProxyEvent<E>
Source§impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for ShutdownProtocol<E>
impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for ShutdownProtocol<E>
Source§impl<E: UserEvent> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for SupervisionEvent<E>
impl<E: UserEvent> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for SupervisionEvent<E>
Source§impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for TimedEvent<E>
impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for TimedEvent<E>
Source§impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for WatchEvent<E>
impl<E> EventInput<WorkerCreationResolved<<<E as UserEvent>::Addr as Address>::Nonce>> for WatchEvent<E>
Source§impl<N> From<(N, ReportWorkerCreationResolved<N>)> for WorkerCreationResolved<N>
impl<N> From<(N, ReportWorkerCreationResolved<N>)> for WorkerCreationResolved<N>
Source§fn from((proxy, resolved): (N, ReportWorkerCreationResolved<N>)) -> Self
fn from((proxy, resolved): (N, ReportWorkerCreationResolved<N>)) -> Self
Converts to this type from the input type.
Source§impl<N: PartialEq> PartialEq for WorkerCreationResolved<N>
impl<N: PartialEq> PartialEq for WorkerCreationResolved<N>
impl<N: Copy> Copy for WorkerCreationResolved<N>
impl<N: Eq> Eq for WorkerCreationResolved<N>
impl<N> StructuralPartialEq for WorkerCreationResolved<N>
Auto Trait Implementations§
impl<N> Freeze for WorkerCreationResolved<N>where
N: Freeze,
impl<N> RefUnwindSafe for WorkerCreationResolved<N>where
N: RefUnwindSafe,
impl<N> Send for WorkerCreationResolved<N>where
N: Send,
impl<N> Sync for WorkerCreationResolved<N>where
N: Sync,
impl<N> Unpin for WorkerCreationResolved<N>where
N: Unpin,
impl<N> UnsafeUnpin for WorkerCreationResolved<N>where
N: UnsafeUnpin,
impl<N> UnwindSafe for WorkerCreationResolved<N>where
N: 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