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)>
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 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 for SendDatagramError
impl PartialEq 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
)