Struct rotor_http::server::Stream [] [src]

pub struct Stream<P> where
    P: Protocol
{ /* fields omitted */ }

A main stream state machine abstaction

You may use the Stream directly. But it's recommented to either use Persistent for client connections or Accept for server-side connection processing.

Methods

impl<P> Stream<P> where
    P: Protocol
[src]

Get a Transport object for the stream

This method is only useful if you want to manipulate buffers externally (like pushing to the buffer from another thread). Just be sure to wake up state machine after manipulating buffers.

Trait Implementations

impl<P> Accepted for Stream<P> where
    P: Protocol,
    <P as Protocol>::Seed: Clone
[src]

impl<P> Machine for Stream<P> where
    P: Protocol
[src]

impl<P> Debug for Stream<P> where
    P: Protocol + Debug,
    <P as Protocol>::Socket: Debug
[src]

Formats the value using the given formatter.