Enum quinn_proto::SendDatagramError
source · pub enum SendDatagramError {
UnsupportedByPeer,
Disabled,
TooLarge,
}
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.
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
1.30.0 · 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 Hash for SendDatagramError
impl Hash for SendDatagramError
source§impl Ord for SendDatagramError
impl Ord for SendDatagramError
source§fn cmp(&self, other: &SendDatagramError) -> Ordering
fn cmp(&self, other: &SendDatagramError) -> Ordering
1.21.0 · 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 SendDatagramError
impl PartialEq 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 ==
.source§impl PartialOrd for SendDatagramError
impl PartialOrd for SendDatagramError
source§fn partial_cmp(&self, other: &SendDatagramError) -> Option<Ordering>
fn partial_cmp(&self, other: &SendDatagramError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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