Struct protocol::wire::stream::Connection[][src]

pub struct Connection<P: Parcel, S: Read + Write, M: Pipeline = Default> {
    pub stream: S,
    pub transport: Simple,
    pub middleware: M,
    pub settings: Settings,
    pub _a: PhantomData<P>,
}
Expand description

A stream-based connection.

Fields

stream: Stransport: Simplemiddleware: Msettings: Settings_a: PhantomData<P>

Implementations

Creates a new connection.

Processes any incoming data in the stream.

Attempts to receive a packet.

Sends a packet.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.