pub struct CooperativeCancellationOptions {
pub reason: Option<String>,
pub cleanup_timeout_seconds: Option<u64>,
}Expand description
Optional reason and runtime-owned cleanup limit for a cooperative request.
Fields§
§reason: Option<String>§cleanup_timeout_seconds: Option<u64>Trait Implementations§
Source§impl Clone for CooperativeCancellationOptions
impl Clone for CooperativeCancellationOptions
Source§fn clone(&self) -> CooperativeCancellationOptions
fn clone(&self) -> CooperativeCancellationOptions
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 Default for CooperativeCancellationOptions
impl Default for CooperativeCancellationOptions
Source§fn default() -> CooperativeCancellationOptions
fn default() -> CooperativeCancellationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CooperativeCancellationOptions
impl RefUnwindSafe for CooperativeCancellationOptions
impl Send for CooperativeCancellationOptions
impl Sync for CooperativeCancellationOptions
impl Unpin for CooperativeCancellationOptions
impl UnwindSafe for CooperativeCancellationOptions
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