pub enum ScopeError<E = TransportError> {
ClosureError(E),
AutoPollError(Vec<TransportError>),
}Expand description
Error returned by Channel::scope.
Distinguishes between errors originating from the user’s closure and errors discovered during automatic polling of outstanding work requests.
Variants§
ClosureError(E)
The user’s closure returned an error.
AutoPollError(Vec<TransportError>)
The closure succeeded, but one or more auto-polled work requests failed.
Trait Implementations§
Source§impl<E: Debug> Debug for ScopeError<E>
impl<E: Debug> Debug for ScopeError<E>
Source§impl<E> Display for ScopeError<E>where
E: Display,
impl<E> Display for ScopeError<E>where
E: Display,
Source§impl<E> Error for ScopeError<E>
impl<E> Error for ScopeError<E>
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()
Auto Trait Implementations§
impl<E> Freeze for ScopeError<E>where
E: Freeze,
impl<E = TransportError> !RefUnwindSafe for ScopeError<E>
impl<E> Send for ScopeError<E>where
E: Send,
impl<E> Sync for ScopeError<E>where
E: Sync,
impl<E> Unpin for ScopeError<E>where
E: Unpin,
impl<E> UnsafeUnpin for ScopeError<E>where
E: UnsafeUnpin,
impl<E = TransportError> !UnwindSafe for ScopeError<E>
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