pub struct UnsupportedUdpOffload { /* private fields */ }Expand description
The caller asked for an offload this socket does not have.
Carried inside an std::io::Error with
ErrorKind::Unsupported by
Datagrams::reject_unsupported, and reachable again through
io::Error::get_ref().downcast_ref() — the shape UnsupportedTcpOpts
already uses, so a caller who wants to react per-offload does not have
to scrape Display.
Implementations§
Trait Implementations§
Source§impl Clone for UnsupportedUdpOffload
impl Clone for UnsupportedUdpOffload
Source§fn clone(&self) -> UnsupportedUdpOffload
fn clone(&self) -> UnsupportedUdpOffload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnsupportedUdpOffload
Source§impl Debug for UnsupportedUdpOffload
impl Debug for UnsupportedUdpOffload
Source§impl Display for UnsupportedUdpOffload
impl Display for UnsupportedUdpOffload
impl Eq for UnsupportedUdpOffload
Source§impl Error for UnsupportedUdpOffload
impl Error for UnsupportedUdpOffload
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 UnsupportedUdpOffload
impl PartialEq for UnsupportedUdpOffload
impl StructuralPartialEq for UnsupportedUdpOffload
Auto Trait Implementations§
impl Freeze for UnsupportedUdpOffload
impl RefUnwindSafe for UnsupportedUdpOffload
impl Send for UnsupportedUdpOffload
impl Sync for UnsupportedUdpOffload
impl Unpin for UnsupportedUdpOffload
impl UnsafeUnpin for UnsupportedUdpOffload
impl UnwindSafe for UnsupportedUdpOffload
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