#[repr(i32)]pub enum CancelStatus {
Unspecified = 0,
Cancelled = 1,
Cancelling = 2,
NotCancellable = 3,
}
Expand description
The result of a cancel operation.
This is used by CancelFlightInfoResult.status.
Variants§
Unspecified = 0
The cancellation status is unknown. Servers should avoid using this value (send a NOT_FOUND error if the requested query is not known). Clients can retry the request.
Cancelled = 1
The cancellation request is complete. Subsequent requests with the same payload may return CANCELLED or a NOT_FOUND error.
Cancelling = 2
The cancellation request is in progress. The client may retry the cancellation request.
NotCancellable = 3
The query is not cancellable. The client should not retry the cancellation request.
Implementations§
Source§impl CancelStatus
impl CancelStatus
Source§impl CancelStatus
impl CancelStatus
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for CancelStatus
impl Clone for CancelStatus
Source§fn clone(&self) -> CancelStatus
fn clone(&self) -> CancelStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CancelStatus
impl Debug for CancelStatus
Source§impl Default for CancelStatus
impl Default for CancelStatus
Source§fn default() -> CancelStatus
fn default() -> CancelStatus
Source§impl From<CancelStatus> for i32
impl From<CancelStatus> for i32
Source§fn from(value: CancelStatus) -> i32
fn from(value: CancelStatus) -> i32
Source§impl Hash for CancelStatus
impl Hash for CancelStatus
Source§impl Ord for CancelStatus
impl Ord for CancelStatus
Source§fn cmp(&self, other: &CancelStatus) -> Ordering
fn cmp(&self, other: &CancelStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CancelStatus
impl PartialEq for CancelStatus
Source§impl PartialOrd for CancelStatus
impl PartialOrd for CancelStatus
Source§impl TryFrom<i32> for CancelStatus
impl TryFrom<i32> for CancelStatus
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<CancelStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<CancelStatus, UnknownEnumValue>
impl Copy for CancelStatus
impl Eq for CancelStatus
impl StructuralPartialEq for CancelStatus
Auto Trait Implementations§
impl Freeze for CancelStatus
impl RefUnwindSafe for CancelStatus
impl Send for CancelStatus
impl Sync for CancelStatus
impl Unpin for CancelStatus
impl UnwindSafe for CancelStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request