Enum layered_io::Activity
source · pub enum Activity {
Active,
Push,
}
Expand description
For interactivity, it’s desirable to avoid buffering data which is complete
enough to be actionable. Activity
allows writers to notify the API at
points when the data provided is actionable and buffers should be flushed
to the reader.
Users that aren’t implementing buffering can ignore this.
Variants§
Active
The writer is actively writing and data may be buffered.
Push
The writer has finished writing something actionable and requested buffering layers flush at this point.
This is similar to the PSH
flag in TCP.
Trait Implementations§
source§impl PartialEq for Activity
impl PartialEq for Activity
impl Copy for Activity
impl Eq for Activity
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnwindSafe for Activity
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