pub enum MessageSendingState {
Failed(MessageSendingStateFailed),
Pending(MessageSendingStatePending),
// some variants omitted
}
Expand description
Contains information about the sending state of the message
Variants§
Failed(MessageSendingStateFailed)
The message failed to be sent
Pending(MessageSendingStatePending)
The message is being sent now, but has not yet been delivered to the server
Implementations§
Trait Implementations§
Source§impl AsRef<MessageSendingState> for MessageSendingState
impl AsRef<MessageSendingState> for MessageSendingState
Source§fn as_ref(&self) -> &MessageSendingState
fn as_ref(&self) -> &MessageSendingState
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for MessageSendingState
impl Clone for MessageSendingState
Source§fn clone(&self) -> MessageSendingState
fn clone(&self) -> MessageSendingState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MessageSendingState
impl Debug for MessageSendingState
Source§impl Default for MessageSendingState
impl Default for MessageSendingState
Source§fn default() -> MessageSendingState
fn default() -> MessageSendingState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageSendingState
impl<'de> Deserialize<'de> for MessageSendingState
Source§fn 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
Auto Trait Implementations§
impl Freeze for MessageSendingState
impl RefUnwindSafe for MessageSendingState
impl Send for MessageSendingState
impl Sync for MessageSendingState
impl Unpin for MessageSendingState
impl UnwindSafe for MessageSendingState
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