[][src]Enum layered_io::Activity

pub enum Activity {
    Active,
    Push,
}

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

impl Clone for Activity[src]

impl Copy for Activity[src]

impl Debug for Activity[src]

impl Eq for Activity[src]

impl PartialEq<Activity> for Activity[src]

impl StructuralEq for Activity[src]

impl StructuralPartialEq for Activity[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.