pub enum CancelOutcome {
Cancelled,
Rejected(Rejected),
}Expand description
What became of a cancel, returned by Kernable::cancel.
Variants§
Cancelled
The scheduled command will not run: it completed as rejected cancelled.
Rejected(Rejected)
Not cancelled: too_late (due, running or done already), not_found, or a
middleware’s rejection.
Implementations§
Source§impl CancelOutcome
impl CancelOutcome
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Whether the command was cancelled.
Trait Implementations§
Source§impl Clone for CancelOutcome
impl Clone for CancelOutcome
Source§impl Debug for CancelOutcome
impl Debug for CancelOutcome
Source§impl PartialEq for CancelOutcome
impl PartialEq for CancelOutcome
impl StructuralPartialEq for CancelOutcome
Auto Trait Implementations§
impl Forget for CancelOutcome
impl Freeze for CancelOutcome
impl Move for CancelOutcome
impl RefUnwindSafe for CancelOutcome
impl Send for CancelOutcome
impl Sync for CancelOutcome
impl Unpin for CancelOutcome
impl UnsafeUnpin for CancelOutcome
impl UnwindSafe for CancelOutcome
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