pub struct LeanWorkerCancellationToken { /* private fields */ }Expand description
Parent-side cancellation token for worker-session requests.
Cancellation is observed by the supervisor before a request is sent and at
worker progress frames while a request is in flight. In-flight cancellation
cycles the child process; it does not share an in-process
LeanCancellationToken with the child.
Implementations§
Trait Implementations§
Source§impl Clone for LeanWorkerCancellationToken
impl Clone for LeanWorkerCancellationToken
Source§fn clone(&self) -> LeanWorkerCancellationToken
fn clone(&self) -> LeanWorkerCancellationToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeanWorkerCancellationToken
impl Debug for LeanWorkerCancellationToken
Source§impl Default for LeanWorkerCancellationToken
impl Default for LeanWorkerCancellationToken
Source§fn default() -> LeanWorkerCancellationToken
fn default() -> LeanWorkerCancellationToken
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LeanWorkerCancellationToken
impl RefUnwindSafe for LeanWorkerCancellationToken
impl Send for LeanWorkerCancellationToken
impl Sync for LeanWorkerCancellationToken
impl Unpin for LeanWorkerCancellationToken
impl UnsafeUnpin for LeanWorkerCancellationToken
impl UnwindSafe for LeanWorkerCancellationToken
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