pub struct UnsupportedStreamOp {
op: &'static str,
reason: &'static str,
}
Expand description
Error: Tried to perform a StreamOps
operation on an unsupported stream type
or on an unsupported platform.
(For example, you can’t call StreamOps::set_tcp_notsent_lowat
on Windows
or on a stream type that is not backed by a TCP socket.)
Fields§
§op: &'static str
The unsupported operation.
reason: &'static str
The reason the operation is unsupported.
Implementations§
Trait Implementations§
Source§impl Clone for UnsupportedStreamOp
impl Clone for UnsupportedStreamOp
Source§fn clone(&self) -> UnsupportedStreamOp
fn clone(&self) -> UnsupportedStreamOp
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 UnsupportedStreamOp
impl Debug for UnsupportedStreamOp
Source§impl Display for UnsupportedStreamOp
impl Display for UnsupportedStreamOp
Source§impl Error for UnsupportedStreamOp
impl Error for UnsupportedStreamOp
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 From<UnsupportedStreamOp> for Error
impl From<UnsupportedStreamOp> for Error
Source§fn from(value: UnsupportedStreamOp) -> Self
fn from(value: UnsupportedStreamOp) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UnsupportedStreamOp
impl RefUnwindSafe for UnsupportedStreamOp
impl Send for UnsupportedStreamOp
impl Sync for UnsupportedStreamOp
impl Unpin for UnsupportedStreamOp
impl UnwindSafe for UnsupportedStreamOp
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§impl<E> ErrorReport for Ewhere
E: Error + 'static,
impl<E> ErrorReport for Ewhere
E: Error + 'static,
Source§fn report(&self) -> Report<ReportHelper<'_>>
fn report(&self) -> Report<ReportHelper<'_>>
Return an object that displays the error and its causes