pub enum SendDatagramError {
NotConnected,
UnsupportedByPeer,
TooLarge,
}Expand description
An error that arise from sending a datagram.
Variants§
NotConnected
Connection has been dropped.
UnsupportedByPeer
The peer does not support receiving datagram frames.
TooLarge
The datagram is larger than the connection can currently accommodate.
Trait Implementations§
Source§impl Clone for SendDatagramError
impl Clone for SendDatagramError
Source§fn clone(&self) -> SendDatagramError
fn clone(&self) -> SendDatagramError
Returns a duplicate 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 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<S> IntoConnectOptions for Swhere
S: ToString,
impl<S> IntoConnectOptions for Swhere
S: ToString,
Source§fn into_options(self) -> ConnectOptions
fn into_options(self) -> ConnectOptions
Perform value-to-value conversion into
ConnectOptions.