Struct dvcompute::simulation::process::WhenCancelling
source · pub struct WhenCancelling<M> { /* private fields */ }
Expand description
Register a handler that will be invoked in case of cancelling the current process.
Trait Implementations§
source§impl<M: Clone> Clone for WhenCancelling<M>
impl<M: Clone> Clone for WhenCancelling<M>
source§fn clone(&self) -> WhenCancelling<M>
fn clone(&self) -> WhenCancelling<M>
Returns a copy 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<M> Process for WhenCancelling<M>
impl<M> Process for WhenCancelling<M>
source§fn and_then<U, F>(self, f: F) -> AndThen<Self, U, F>
fn and_then<U, F>(self, f: F) -> AndThen<Self, U, F>
Bind the current computation with its continuation within the resulting computation.
source§fn map<B, F>(self, f: F) -> Map<Self, B, F>
fn map<B, F>(self, f: F) -> Map<Self, B, F>
Map the current computation using the specified transform.
source§fn zip<U>(self, other: U) -> Zip<Self, U>
fn zip<U>(self, other: U) -> Zip<Self, U>
Zip the current computation with another one within the resulting computation.
source§fn finally<U>(self, finalization: U) -> Finally<Self, U>
fn finally<U>(self, finalization: U) -> Finally<Self, U>
Finalize the current computation regardless of canceling it or not.
source§fn run_using_id(self, pid: Grc<ProcessId>) -> Run<Self>
fn run_using_id(self, pid: Grc<ProcessId>) -> Run<Self>
Run the
Process
computation using the specified process identifier.source§fn into_boxed(self) -> ProcessBox<Self::Item>where
Self: Sized + 'static,
fn into_boxed(self) -> ProcessBox<Self::Item>where
Self: Sized + 'static,
Convert into a boxed value.
Auto Trait Implementations§
impl<M> Freeze for WhenCancelling<M>where
M: Freeze,
impl<M> RefUnwindSafe for WhenCancelling<M>where
M: RefUnwindSafe,
impl<M> Send for WhenCancelling<M>where
M: Send,
impl<M> Sync for WhenCancelling<M>where
M: Sync,
impl<M> Unpin for WhenCancelling<M>where
M: Unpin,
impl<M> UnwindSafe for WhenCancelling<M>where
M: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)