Struct rotor_stream::Persistent [] [src]

pub struct Persistent<P>(_, _, _)
where
    P: Protocol,
    P::Socket: ActiveStream
;

Persistent client connection

TODO(tailhook) this should include name resolution

Methods

impl<P> Persistent<P> where
    P: Protocol,
    P::Socket: ActiveStream,
    <P::Socket as ActiveStream>::Address: Debug
[src]

impl<P> Persistent<P> where
    P: Protocol,
    P::Socket: ActiveStream
[src]

Get a Transport object of the underlying 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.

Returns None if stream is not currently connected

Trait Implementations

impl<P: Protocol> Replaceable for Persistent<P> where
    P: Protocol,
    P::Seed: Clone,
    <P::Socket as ActiveStream>::Address: Clone + Debug,
    P::Socket: ActiveStream
[src]

Return the empty value that may be used as replacement Read more

Restart a state machine from empty() state Read more

impl<P: Protocol> Machine for Persistent<P> where
    P: Protocol,
    P::Seed: Clone,
    P::Socket: ActiveStream,
    <P::Socket as ActiveStream>::Address: Debug
[src]

Context type for the state machine Read more

Seed is piece of data that is needed to initialize the machine Read more

Create a machine from some data Read more

Socket readiness notification

Called after spawn event Read more

Timeout happened

Message received Read more

Called instead of spawned, if there is no slab space Read more