#[repr(i32)]pub enum MessageSendMode {
ModeUnspecified = 0,
ModeSilent = 1,
}Variants§
Implementations§
Source§impl MessageSendMode
impl MessageSendMode
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<MessageSendMode>
pub fn from_str_name(value: &str) -> Option<MessageSendMode>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for MessageSendMode
impl Clone for MessageSendMode
Source§fn clone(&self) -> MessageSendMode
fn clone(&self) -> MessageSendMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MessageSendMode
Source§impl Debug for MessageSendMode
impl Debug for MessageSendMode
Source§impl Default for MessageSendMode
impl Default for MessageSendMode
Source§fn default() -> MessageSendMode
fn default() -> MessageSendMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageSendMode
impl<'de> Deserialize<'de> for MessageSendMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageSendMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageSendMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MessageSendMode
Source§impl Hash for MessageSendMode
impl Hash for MessageSendMode
Source§impl Ord for MessageSendMode
impl Ord for MessageSendMode
Source§fn cmp(&self, other: &MessageSendMode) -> Ordering
fn cmp(&self, other: &MessageSendMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MessageSendMode
impl PartialEq for MessageSendMode
Source§fn eq(&self, other: &MessageSendMode) -> bool
fn eq(&self, other: &MessageSendMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MessageSendMode
impl PartialOrd for MessageSendMode
Source§impl Serialize for MessageSendMode
impl Serialize for MessageSendMode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MessageSendMode
Source§impl TryFrom<i32> for MessageSendMode
impl TryFrom<i32> for MessageSendMode
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<MessageSendMode, DecodeError>
fn try_from(value: i32) -> Result<MessageSendMode, DecodeError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MessageSendMode
impl RefUnwindSafe for MessageSendMode
impl Send for MessageSendMode
impl Sync for MessageSendMode
impl Unpin for MessageSendMode
impl UnsafeUnpin for MessageSendMode
impl UnwindSafe for MessageSendMode
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