Enum quinn::SendDatagramError 
source · pub enum SendDatagramError {
    UnsupportedByPeer,
    Disabled,
    TooLarge,
    ConnectionLost(ConnectionError),
}Expand description
Errors that can arise when sending a datagram
Variants§
UnsupportedByPeer
The peer does not support receiving datagram frames
Disabled
Datagram support is disabled locally
TooLarge
The datagram is larger than the connection can currently accommodate
Indicates that the path MTU minus overhead or the limit advertised by the peer has been exceeded.
ConnectionLost(ConnectionError)
The connection was lost
Trait Implementations§
source§impl Clone for SendDatagramError
 
impl Clone for SendDatagramError
source§fn clone(&self) -> SendDatagramError
 
fn clone(&self) -> SendDatagramError
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 SendDatagramError
 
impl Debug for SendDatagramError
source§impl Display for SendDatagramError
 
impl Display for SendDatagramError
source§impl Error for SendDatagramError
 
impl Error for SendDatagramError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
 
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ConnectionError> for SendDatagramError
 
impl From<ConnectionError> for SendDatagramError
source§fn from(source: ConnectionError) -> Self
 
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
source§impl PartialEq<SendDatagramError> for SendDatagramError
 
impl PartialEq<SendDatagramError> for SendDatagramError
source§fn eq(&self, other: &SendDatagramError) -> bool
 
fn eq(&self, other: &SendDatagramError) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for SendDatagramError
impl StructuralEq for SendDatagramError
impl StructuralPartialEq for SendDatagramError
Auto Trait Implementations§
impl RefUnwindSafe for SendDatagramError
impl Send for SendDatagramError
impl Sync for SendDatagramError
impl Unpin for SendDatagramError
impl UnwindSafe for SendDatagramError
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