#[non_exhaustive]pub enum SendDatagramError {
#[non_exhaustive] NotAvailable,
#[non_exhaustive] TooLarge,
#[non_exhaustive] ConnectionError(ConnectionError),
}Expand description
Types of errors when sending a datagram.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]NotAvailable
The peer is not accepting datagrams on the quic layer
This can be because the peer does not support it or disabled it or any other reason.
#[non_exhaustive]TooLarge
The datagram is too large to send
#[non_exhaustive]ConnectionError(ConnectionError)
Connection error
Trait Implementations§
Source§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()
Auto Trait Implementations§
impl !RefUnwindSafe for SendDatagramError
impl !UnwindSafe for SendDatagramError
impl Freeze for SendDatagramError
impl Send for SendDatagramError
impl Sync for SendDatagramError
impl Unpin for SendDatagramError
impl UnsafeUnpin 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