pub enum IntrError<E> {
Other(E),
Interrupted,
}Expand description
This error type indicates that operation might fail in restartible manner. The most obvious
case is EINTR returned from syscalls when a signal is delivered while doing read.
Variants§
Other(E)
The error wasn’t interruption.
Interrupted
An operation was interrupted. This variant means that operation can be retried and it will likely succeed.
Trait Implementations§
Source§impl<E> IntoIntrError for IntrError<E>
impl<E> IntoIntrError for IntrError<E>
Source§fn into_intr_error(self) -> IntrError<<IntrError<E> as IntoIntrError>::NonIntr>
fn into_intr_error(self) -> IntrError<<IntrError<E> as IntoIntrError>::NonIntr>
Performs the conversion.
Auto Trait Implementations§
impl<E> Freeze for IntrError<E>where
E: Freeze,
impl<E> RefUnwindSafe for IntrError<E>where
E: RefUnwindSafe,
impl<E> Send for IntrError<E>where
E: Send,
impl<E> Sync for IntrError<E>where
E: Sync,
impl<E> Unpin for IntrError<E>where
E: Unpin,
impl<E> UnwindSafe for IntrError<E>where
E: UnwindSafe,
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