pub enum SendStatus {
Sending(u8),
Delivered(u8),
Failed,
Empty,
}
Variants§
Sending(u8)
Trying to send the message. The value is the number of attempts so far.
Delivered(u8)
Message is delivered. The value is the number of attempts that it took.
Failed
Message delivery failed.
Empty
No messages were sent to the peer.
Trait Implementations§
Source§impl Clone for SendStatus
impl Clone for SendStatus
Source§fn clone(&self) -> SendStatus
fn clone(&self) -> SendStatus
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 SendStatus
impl Debug for SendStatus
Source§impl<'de> Deserialize<'de> for SendStatus
impl<'de> Deserialize<'de> for SendStatus
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 SendStatus
impl PartialEq for SendStatus
Source§impl Serialize for SendStatus
impl Serialize for SendStatus
impl Copy for SendStatus
impl StructuralPartialEq for SendStatus
Auto Trait Implementations§
impl Freeze for SendStatus
impl RefUnwindSafe for SendStatus
impl Send for SendStatus
impl Sync for SendStatus
impl Unpin for SendStatus
impl UnwindSafe for SendStatus
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