#[repr(i32)]
pub enum ExecutorStatus {
Idle,
Executing,
}
Variants
Idle
Executing
Implementations
sourceimpl ExecutorStatus
impl ExecutorStatus
sourcepub fn from_i32(value: i32) -> Option<ExecutorStatus>
pub fn from_i32(value: i32) -> Option<ExecutorStatus>
Converts an i32
to a ExecutorStatus
, or None
if value
is not a valid variant.
Trait Implementations
sourceimpl Clone for ExecutorStatus
impl Clone for ExecutorStatus
sourcefn clone(&self) -> ExecutorStatus
fn clone(&self) -> ExecutorStatus
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ExecutorStatus
impl Debug for ExecutorStatus
sourceimpl Default for ExecutorStatus
impl Default for ExecutorStatus
sourcefn default() -> ExecutorStatus
fn default() -> ExecutorStatus
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ExecutorStatus
impl<'de> Deserialize<'de> for ExecutorStatus
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<ExecutorStatus> for ExecutorStatus
impl From<ExecutorStatus> for ExecutorStatus
sourcefn from(status: ExecutorStatus) -> Self
fn from(status: ExecutorStatus) -> Self
Converts to this type from the input type.
sourceimpl From<ExecutorStatus> for i32
impl From<ExecutorStatus> for i32
sourcefn from(value: ExecutorStatus) -> i32
fn from(value: ExecutorStatus) -> i32
Converts to this type from the input type.
sourceimpl Hash for ExecutorStatus
impl Hash for ExecutorStatus
sourcefn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [
Hasher
]. Read more1.3.0fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Feeds a slice of this type into the given [
Hasher
]. Read moresourceimpl Ord for ExecutorStatus
impl Ord for ExecutorStatus
sourceimpl PartialEq<ExecutorStatus> for ExecutorStatus
impl PartialEq<ExecutorStatus> for ExecutorStatus
sourcefn eq(&self, other: &ExecutorStatus) -> bool
fn eq(&self, other: &ExecutorStatus) -> bool
sourceimpl PartialOrd<ExecutorStatus> for ExecutorStatus
impl PartialOrd<ExecutorStatus> for ExecutorStatus
sourcefn partial_cmp(&self, other: &ExecutorStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &ExecutorStatus) -> Option<Ordering>
1.0.0const fn lt(&self, other: &Rhs) -> bool
const fn lt(&self, other: &Rhs) -> bool
1.0.0const fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more1.0.0const fn gt(&self, other: &Rhs) -> bool
const fn gt(&self, other: &Rhs) -> bool
sourceimpl Serialize for ExecutorStatus
impl Serialize for ExecutorStatus
sourceimpl TryFrom<ExecutorStatus> for ExecutorStatus
impl TryFrom<ExecutorStatus> for ExecutorStatus
impl Copy for ExecutorStatus
impl Eq for ExecutorStatus
impl StructuralEq for ExecutorStatus
impl StructuralPartialEq for ExecutorStatus
Auto Trait Implementations
impl RefUnwindSafe for ExecutorStatus
impl Send for ExecutorStatus
impl Sync for ExecutorStatus
impl Unpin for ExecutorStatus
impl UnwindSafe for ExecutorStatus
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more