pub struct BoundedCompletionWait { /* private fields */ }Expand description
One explicit bounded-wait policy selected before a backend submission is created.
Implementations§
Source§impl BoundedCompletionWait
impl BoundedCompletionWait
Sourcepub fn new(
timeout: Duration,
cancellation: CompletionCancellationMode,
) -> Result<Self, BoundedCompletionWaitError>
pub fn new( timeout: Duration, cancellation: CompletionCancellationMode, ) -> Result<Self, BoundedCompletionWaitError>
Creates a positive relative deadline and its required safe cancellation mode.
Sourcepub const fn cancellation(self) -> CompletionCancellationMode
pub const fn cancellation(self) -> CompletionCancellationMode
Required safe disposition for work still live at the deadline.
Trait Implementations§
Source§impl Clone for BoundedCompletionWait
impl Clone for BoundedCompletionWait
Source§fn clone(&self) -> BoundedCompletionWait
fn clone(&self) -> BoundedCompletionWait
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 moreimpl Copy for BoundedCompletionWait
Source§impl Debug for BoundedCompletionWait
impl Debug for BoundedCompletionWait
impl Eq for BoundedCompletionWait
Source§impl PartialEq for BoundedCompletionWait
impl PartialEq for BoundedCompletionWait
impl StructuralPartialEq for BoundedCompletionWait
Auto Trait Implementations§
impl Freeze for BoundedCompletionWait
impl RefUnwindSafe for BoundedCompletionWait
impl Send for BoundedCompletionWait
impl Sync for BoundedCompletionWait
impl Unpin for BoundedCompletionWait
impl UnsafeUnpin for BoundedCompletionWait
impl UnwindSafe for BoundedCompletionWait
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