Struct framecodecs::varint::VarIntLengthFieldProto
[−]
[src]
pub struct VarIntLengthFieldProto;
A protocol such that every frame has length field prepended in Protobuf's base 128 varint.
Methods
impl VarIntLengthFieldProto
[src]
fn new() -> VarIntLengthFieldProto
Trait Implementations
impl Debug for VarIntLengthFieldProto
[src]
impl Clone for VarIntLengthFieldProto
[src]
fn clone(&self) -> VarIntLengthFieldProto
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for VarIntLengthFieldProto
[src]
fn default() -> VarIntLengthFieldProto
Returns the "default value" for a type. Read more
impl<T> ClientProto<T> for VarIntLengthFieldProto where T: Io + 'static
[src]
type Request = Vec<u8>
Request messages.
type Response = Vec<u8>
Response messages.
type Error = Error
Errors produced by the service.
type Transport = Framed<T, VarIntLengthFieldCodec>
The message transport, which works with I/O objects of type T
. Read more
type BindTransport = Result<Self::Transport, Error>
A future for initializing a transport from an I/O object. Read more
fn bind_transport(&self, io: T) -> Self::BindTransport
Build a transport from the given I/O object, using self
for any configuration. Read more
impl<T> ServerProto<T> for VarIntLengthFieldProto where T: Io + 'static
[src]
type Request = Vec<u8>
Request messages.
type Response = Vec<u8>
Response messages.
type Error = Error
Errors produced by the service.
type Transport = Framed<T, VarIntLengthFieldCodec>
The message transport, which works with I/O objects of type T
. Read more
type BindTransport = Result<Self::Transport, Error>
A future for initializing a transport from an I/O object. Read more
fn bind_transport(&self, io: T) -> Self::BindTransport
Build a transport from the given I/O object, using self
for any configuration. Read more