#[non_exhaustive]pub enum OperationPoll<T> {
Pending,
Complete(T),
}Expand description
Generic result of advancing an operation without blocking.
Marked #[non_exhaustive] for forward compatibility.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl<T: Clone> Clone for OperationPoll<T>
impl<T: Clone> Clone for OperationPoll<T>
Source§fn clone(&self) -> OperationPoll<T>
fn clone(&self) -> OperationPoll<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for OperationPoll<T>
impl<T: Debug> Debug for OperationPoll<T>
Source§impl From<CommandResponsePoll> for OperationPoll<Response>
impl From<CommandResponsePoll> for OperationPoll<Response>
Source§fn from(value: CommandResponsePoll) -> Self
fn from(value: CommandResponsePoll) -> Self
Converts to this type from the input type.
Source§impl From<DataCommandPoll> for OperationPoll<Response>
impl From<DataCommandPoll> for OperationPoll<Response>
Source§fn from(value: DataCommandPoll) -> Self
fn from(value: DataCommandPoll) -> Self
Converts to this type from the input type.
impl<T: Copy> Copy for OperationPoll<T>
Auto Trait Implementations§
impl<T> Freeze for OperationPoll<T>where
T: Freeze,
impl<T> RefUnwindSafe for OperationPoll<T>where
T: RefUnwindSafe,
impl<T> Send for OperationPoll<T>where
T: Send,
impl<T> Sync for OperationPoll<T>where
T: Sync,
impl<T> Unpin for OperationPoll<T>where
T: Unpin,
impl<T> UnsafeUnpin for OperationPoll<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for OperationPoll<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