#[repr(i32)]pub enum RpcNotifyCommand {
NotifyStart = 0,
NotifyStop = 1,
}Variants§
Implementations§
Source§impl RpcNotifyCommand
impl RpcNotifyCommand
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 RpcNotifyCommand
impl Clone for RpcNotifyCommand
Source§fn clone(&self) -> RpcNotifyCommand
fn clone(&self) -> RpcNotifyCommand
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RpcNotifyCommand
impl Debug for RpcNotifyCommand
Source§impl Default for RpcNotifyCommand
impl Default for RpcNotifyCommand
Source§fn default() -> RpcNotifyCommand
fn default() -> RpcNotifyCommand
Returns the “default value” for a type. Read more
Source§impl From<Command> for RpcNotifyCommand
impl From<Command> for RpcNotifyCommand
Source§impl From<RpcNotifyCommand> for Command
impl From<RpcNotifyCommand> for Command
Source§fn from(item: RpcNotifyCommand) -> Self
fn from(item: RpcNotifyCommand) -> Self
Converts to this type from the input type.
Source§impl From<RpcNotifyCommand> for i32
impl From<RpcNotifyCommand> for i32
Source§fn from(value: RpcNotifyCommand) -> i32
fn from(value: RpcNotifyCommand) -> i32
Converts to this type from the input type.
Source§impl Hash for RpcNotifyCommand
impl Hash for RpcNotifyCommand
Source§impl Ord for RpcNotifyCommand
impl Ord for RpcNotifyCommand
Source§impl PartialEq for RpcNotifyCommand
impl PartialEq for RpcNotifyCommand
Source§impl PartialOrd for RpcNotifyCommand
impl PartialOrd for RpcNotifyCommand
Source§impl TryFrom<i32> for RpcNotifyCommand
impl TryFrom<i32> for RpcNotifyCommand
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<RpcNotifyCommand, DecodeError>
fn try_from(value: i32) -> Result<RpcNotifyCommand, DecodeError>
Performs the conversion.
impl Copy for RpcNotifyCommand
impl Eq for RpcNotifyCommand
impl StructuralPartialEq for RpcNotifyCommand
Auto Trait Implementations§
impl Freeze for RpcNotifyCommand
impl RefUnwindSafe for RpcNotifyCommand
impl Send for RpcNotifyCommand
impl Sync for RpcNotifyCommand
impl Unpin for RpcNotifyCommand
impl UnwindSafe for RpcNotifyCommand
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
Source§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
Source§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any, which is backed by the type implementing this trait.Source§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any, which is backed by the type implementing this trait.Source§impl<T> CastFromSync for T
impl<T> CastFromSync for T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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