pub struct Cancel { /* private fields */ }Expand description
A cancel of a scheduled command for Kernable::cancel, built with methods that each
return the changed cancel: Cancel::new(&id).tenant("t1").
Implementations§
Source§impl Cancel
impl Cancel
Sourcepub fn new(command_id: &str) -> Cancel
pub fn new(command_id: &str) -> Cancel
A cancel of the scheduled command command_id (the ID Kernable::enqueue returned).
Sourcepub fn tenant(self, tenant: impl Into<String>) -> Cancel
pub fn tenant(self, tenant: impl Into<String>) -> Cancel
The command’s tenant. Default: the connection’s (Options::tenant).
Sourcepub fn context(self, context: RequestContext) -> Cancel
pub fn context(self, context: RequestContext) -> Cancel
Replaces the client’s default context: who cancels, for the middlewares.
Sourcepub fn timeout(self, timeout: Duration) -> Cancel
pub fn timeout(self, timeout: Duration) -> Cancel
How long to wait for the connection and the answer; default Options::timeout.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Cancel
impl Freeze for Cancel
impl Move for Cancel
impl RefUnwindSafe for Cancel
impl Send for Cancel
impl Sync for Cancel
impl Unpin for Cancel
impl UnsafeUnpin for Cancelwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for Cancel
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request