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
sourceimpl Clone for SendDatagramError
impl Clone for SendDatagramError
sourcefn clone(&self) -> SendDatagramError
fn clone(&self) -> SendDatagramError
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SendDatagramError
impl Debug for SendDatagramError
sourceimpl Display for SendDatagramError
impl Display for SendDatagramError
sourceimpl Error for SendDatagramError
impl Error for SendDatagramError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl Hash for SendDatagramError
impl Hash for SendDatagramError
sourceimpl Ord for SendDatagramError
impl Ord for SendDatagramError
sourcefn cmp(&self, other: &SendDatagramError) -> Ordering
fn cmp(&self, other: &SendDatagramError) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SendDatagramError> for SendDatagramError
impl PartialEq<SendDatagramError> for SendDatagramError
sourcefn eq(&self, other: &SendDatagramError) -> bool
fn eq(&self, other: &SendDatagramError) -> bool
sourceimpl PartialOrd<SendDatagramError> for SendDatagramError
impl PartialOrd<SendDatagramError> for SendDatagramError
sourcefn partial_cmp(&self, other: &SendDatagramError) -> Option<Ordering>
fn partial_cmp(&self, other: &SendDatagramError) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more