Enum nbio::DriveOutcome
source · pub enum DriveOutcome {
Active,
Idle,
}
Expand description
Returned by the Session::drive
function, providing the result of the drive operation
Variants§
Active
The drive operation resulted in work being done, which means the user should attempt to call Session::drive
again as soon as possible.
Idle
The drive operation did not result in any work being done, which means the user may decide to yield or backoff.
Trait Implementations§
source§impl Clone for DriveOutcome
impl Clone for DriveOutcome
source§fn clone(&self) -> DriveOutcome
fn clone(&self) -> DriveOutcome
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DriveOutcome
impl Debug for DriveOutcome
source§impl Hash for DriveOutcome
impl Hash for DriveOutcome
source§impl PartialEq for DriveOutcome
impl PartialEq for DriveOutcome
source§fn eq(&self, other: &DriveOutcome) -> bool
fn eq(&self, other: &DriveOutcome) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DriveOutcome
impl Eq for DriveOutcome
impl StructuralPartialEq for DriveOutcome
Auto Trait Implementations§
impl Freeze for DriveOutcome
impl RefUnwindSafe for DriveOutcome
impl Send for DriveOutcome
impl Sync for DriveOutcome
impl Unpin for DriveOutcome
impl UnwindSafe for DriveOutcome
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