Enum layered_io::Activity [−][src]
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
The writer is actively writing and data may be buffered.
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
impl Copy for Activity
[src]
impl Eq for Activity
[src]
impl StructuralEq for Activity
[src]
impl StructuralPartialEq for Activity
[src]
Auto Trait Implementations
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnwindSafe for Activity
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more