pub enum Readiness<T> {
Ready(T),
Pending,
}Expand description
The outcome of a poll_once call.
This has a similar shape to std::task::Poll, but is defined separately
because Poll implies waker semantics that don’t necessarily apply here.
Variants§
Ready(T)
The port file is available and has been parsed successfully.
Pending
The port file is not yet available.
Trait Implementations§
impl<T: Copy> Copy for Readiness<T>
impl<T: Eq> Eq for Readiness<T>
Source§impl<T: PartialEq> PartialEq for Readiness<T>
impl<T: PartialEq> PartialEq for Readiness<T>
impl<T: PartialEq> StructuralPartialEq for Readiness<T>
Auto Trait Implementations§
impl<T> Freeze for Readiness<T>where
T: Freeze,
impl<T> RefUnwindSafe for Readiness<T>where
T: RefUnwindSafe,
impl<T> Send for Readiness<T>where
T: Send,
impl<T> Sync for Readiness<T>where
T: Sync,
impl<T> Unpin for Readiness<T>where
T: Unpin,
impl<T> UnsafeUnpin for Readiness<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Readiness<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