Enum quinn_proto::SendDatagramError
source · pub enum SendDatagramError {
UnsupportedByPeer,
Disabled,
TooLarge,
Blocked(Bytes),
}
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.
Blocked(Bytes)
Send would block
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)>
Returns 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§impl PartialOrd for SendDatagramError
impl PartialOrd for SendDatagramError
impl Eq for SendDatagramError
impl StructuralPartialEq for SendDatagramError
Auto Trait Implementations§
impl !Freeze for SendDatagramError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)