#[repr(i32)]
pub enum ExecutorCommand {
NoAction,
Stop,
NewTask,
}
Variants
NoAction
Stop
NewTask
Implementations
sourceimpl ExecutorCommand
impl ExecutorCommand
sourcepub fn from_i32(value: i32) -> Option<ExecutorCommand>
pub fn from_i32(value: i32) -> Option<ExecutorCommand>
Converts an i32
to a ExecutorCommand
, or None
if value
is not a valid variant.
Trait Implementations
sourceimpl Clone for ExecutorCommand
impl Clone for ExecutorCommand
sourcefn clone(&self) -> ExecutorCommand
fn clone(&self) -> ExecutorCommand
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 ExecutorCommand
impl Debug for ExecutorCommand
sourceimpl Default for ExecutorCommand
impl Default for ExecutorCommand
sourcefn default() -> ExecutorCommand
fn default() -> ExecutorCommand
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ExecutorCommand
impl<'de> Deserialize<'de> for ExecutorCommand
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<ExecutorCommand> for ExecutorCommand
impl From<ExecutorCommand> for ExecutorCommand
sourcefn from(command: ExecutorCommand) -> Self
fn from(command: ExecutorCommand) -> Self
Converts to this type from the input type.
sourceimpl From<ExecutorCommand> for i32
impl From<ExecutorCommand> for i32
sourcefn from(value: ExecutorCommand) -> i32
fn from(value: ExecutorCommand) -> i32
Converts to this type from the input type.
sourceimpl Hash for ExecutorCommand
impl Hash for ExecutorCommand
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 ExecutorCommand
impl Ord for ExecutorCommand
sourceimpl PartialEq<ExecutorCommand> for ExecutorCommand
impl PartialEq<ExecutorCommand> for ExecutorCommand
sourcefn eq(&self, other: &ExecutorCommand) -> bool
fn eq(&self, other: &ExecutorCommand) -> bool
sourceimpl PartialOrd<ExecutorCommand> for ExecutorCommand
impl PartialOrd<ExecutorCommand> for ExecutorCommand
sourcefn partial_cmp(&self, other: &ExecutorCommand) -> Option<Ordering>
fn partial_cmp(&self, other: &ExecutorCommand) -> 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 ExecutorCommand
impl Serialize for ExecutorCommand
sourceimpl TryFrom<ExecutorCommand> for ExecutorCommand
impl TryFrom<ExecutorCommand> for ExecutorCommand
impl Copy for ExecutorCommand
impl Eq for ExecutorCommand
impl StructuralEq for ExecutorCommand
impl StructuralPartialEq for ExecutorCommand
Auto Trait Implementations
impl RefUnwindSafe for ExecutorCommand
impl Send for ExecutorCommand
impl Sync for ExecutorCommand
impl Unpin for ExecutorCommand
impl UnwindSafe for ExecutorCommand
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