Struct rotor_capnp::Persistent [] [src]

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

Persistent client connection

TODO(tailhook) this should include name resolution

Methods

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

impl<P> Persistent<P> where
    P: Protocol,
    <P as Protocol>::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> Replaceable for Persistent<P> where
    P: Protocol + Protocol,
    <P as Protocol>::Seed: Clone,
    <<P as Protocol>::Socket as ActiveStream>::Address: Clone,
    <<P as Protocol>::Socket as ActiveStream>::Address: Debug,
    <P as Protocol>::Socket: ActiveStream
[src]

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