pub enum PartialOp {
Unlimited,
Limited(usize),
Pending,
}Expand description
The different operations supported by the partial wrappers.
Variants§
Unlimited
Perform the io operation as normal.
Limited(usize)
Perform the io operation, but limit it to a maximum number of bytes.
Pending
Emit Ok(Async::Pending) and reschedule the task.
Trait Implementations§
impl Copy for PartialOp
impl Eq for PartialOp
impl StructuralPartialEq for PartialOp
Auto Trait Implementations§
impl Freeze for PartialOp
impl RefUnwindSafe for PartialOp
impl Send for PartialOp
impl Sync for PartialOp
impl Unpin for PartialOp
impl UnwindSafe for PartialOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more