pub struct OperationCancelled;Expand description
Marker error stored inside io::Error when a cooperative cancel fires.
Must not use io::ErrorKind::Interrupted: Read::read_exact and
sley’s pkt-line readers treat that as EINTR and retry forever.
Trait Implementations§
Source§impl Clone for OperationCancelled
impl Clone for OperationCancelled
Source§fn clone(&self) -> OperationCancelled
fn clone(&self) -> OperationCancelled
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 OperationCancelled
Source§impl Debug for OperationCancelled
impl Debug for OperationCancelled
Source§impl Display for OperationCancelled
impl Display for OperationCancelled
impl Eq for OperationCancelled
Source§impl Error for OperationCancelled
impl Error for OperationCancelled
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 OperationCancelled
impl PartialEq for OperationCancelled
impl StructuralPartialEq for OperationCancelled
Auto Trait Implementations§
impl Freeze for OperationCancelled
impl RefUnwindSafe for OperationCancelled
impl Send for OperationCancelled
impl Sync for OperationCancelled
impl Unpin for OperationCancelled
impl UnsafeUnpin for OperationCancelled
impl UnwindSafe for OperationCancelled
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