pub enum PollOutcome<T> {
Interrupted(Option<T>),
NoInterrupt(T),
}Expand description
InterruptibleStream outcome that indicates whether an interruption
happened.
Variants§
Interrupted(Option<T>)
An interrupt signal was received.
The item is None in the following cases:
- The interruption happened before the stream was polled.
- The interruption happened after a
Poll::Ready, but before a subsequent poll.
NoInterrupt(T)
No interrupt signal was received.
Trait Implementations§
Source§impl<T: Debug> Debug for PollOutcome<T>
impl<T: Debug> Debug for PollOutcome<T>
Source§impl<T: PartialEq> PartialEq for PollOutcome<T>
impl<T: PartialEq> PartialEq for PollOutcome<T>
impl<T: Eq> Eq for PollOutcome<T>
impl<T> StructuralPartialEq for PollOutcome<T>
Auto Trait Implementations§
impl<T> Freeze for PollOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for PollOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for PollOutcome<T>where
T: Send,
impl<T> Sync for PollOutcome<T>where
T: Sync,
impl<T> Unpin for PollOutcome<T>where
T: Unpin,
impl<T> UnwindSafe for PollOutcome<T>where
T: 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