Enum rasi_syscall::CancelablePoll
source · pub enum CancelablePoll<T> {
Ready(T),
Pending(Handle),
}
Expand description
The returns type of WouldBlock
operations.
Variants§
Ready(T)
Operation is ready, returns operation result.
Pending(Handle)
Operation is pending, returns operation cancel handle.
When pending handle drops, the syscall implementation should cancel the pending operation referenced by this handle.
Auto Trait Implementations§
impl<T> Freeze for CancelablePoll<T>where
T: Freeze,
impl<T> RefUnwindSafe for CancelablePoll<T>where
T: RefUnwindSafe,
impl<T> Send for CancelablePoll<T>where
T: Send,
impl<T> Sync for CancelablePoll<T>where
T: Sync,
impl<T> Unpin for CancelablePoll<T>where
T: Unpin,
impl<T> UnwindSafe for CancelablePoll<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