pub enum MessageSendStatus {
Sending,
Pending,
Failed(String),
}Expand description
Status of a message being sent.
Variants§
Sending
Message is being sent right now.
Pending
Message send failed, waiting for retry.
Failed(String)
Message failed after max retries.
Implementations§
Source§impl MessageSendStatus
impl MessageSendStatus
Sourcepub fn is_sending(&self) -> bool
pub fn is_sending(&self) -> bool
Whether the message is still attempting to send.
Sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Whether the message is pending retry.
Trait Implementations§
Source§impl Clone for MessageSendStatus
impl Clone for MessageSendStatus
Source§fn clone(&self) -> MessageSendStatus
fn clone(&self) -> MessageSendStatus
Returns a duplicate 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 MessageSendStatus
impl Debug for MessageSendStatus
Source§impl<'de> Deserialize<'de> for MessageSendStatus
impl<'de> Deserialize<'de> for MessageSendStatus
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
Source§impl PartialEq for MessageSendStatus
impl PartialEq for MessageSendStatus
Source§impl Serialize for MessageSendStatus
impl Serialize for MessageSendStatus
impl Eq for MessageSendStatus
impl StructuralPartialEq for MessageSendStatus
Auto Trait Implementations§
impl Freeze for MessageSendStatus
impl RefUnwindSafe for MessageSendStatus
impl Send for MessageSendStatus
impl Sync for MessageSendStatus
impl Unpin for MessageSendStatus
impl UnsafeUnpin for MessageSendStatus
impl UnwindSafe for MessageSendStatus
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