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
)