pub struct UnsupportedTcpOpts { /* private fields */ }Expand description
The caller set socket options this runtime cannot apply.
Carried inside an std::io::Error with
ErrorKind::Unsupported by
TcpOpts::reject_unsupported, and reachable again through
io::Error::get_ref().downcast_ref().
Display names every offending option, not just the first: a caller
who set two unappliable options and fixed the one the message mentioned
would otherwise get a second, identical-looking failure.
Implementations§
Trait Implementations§
Source§impl Clone for UnsupportedTcpOpts
impl Clone for UnsupportedTcpOpts
Source§fn clone(&self) -> UnsupportedTcpOpts
fn clone(&self) -> UnsupportedTcpOpts
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 UnsupportedTcpOpts
Source§impl Debug for UnsupportedTcpOpts
impl Debug for UnsupportedTcpOpts
Source§impl Display for UnsupportedTcpOpts
impl Display for UnsupportedTcpOpts
impl Eq for UnsupportedTcpOpts
Source§impl Error for UnsupportedTcpOpts
impl Error for UnsupportedTcpOpts
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 UnsupportedTcpOpts
impl PartialEq for UnsupportedTcpOpts
impl StructuralPartialEq for UnsupportedTcpOpts
Auto Trait Implementations§
impl Freeze for UnsupportedTcpOpts
impl RefUnwindSafe for UnsupportedTcpOpts
impl Send for UnsupportedTcpOpts
impl Sync for UnsupportedTcpOpts
impl Unpin for UnsupportedTcpOpts
impl UnsafeUnpin for UnsupportedTcpOpts
impl UnwindSafe for UnsupportedTcpOpts
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