Struct framecodecs::length_field::LengthFieldProto
[−]
[src]
pub struct LengthFieldProto<B> {
pub field_size: usize,
// some fields omitted
}A protocol such that every frame has length field prepended in specified size and byte-order.
Fields
field_size: usize
Methods
impl<B> LengthFieldProto<B>[src]
Trait Implementations
impl<B: Debug> Debug for LengthFieldProto<B>[src]
impl<B: Clone> Clone for LengthFieldProto<B>[src]
fn clone(&self) -> LengthFieldProto<B>
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<B: Copy> Copy for LengthFieldProto<B>[src]
impl<B: PartialEq> PartialEq for LengthFieldProto<B>[src]
fn eq(&self, __arg_0: &LengthFieldProto<B>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &LengthFieldProto<B>) -> bool
This method tests for !=.
impl<B: Eq> Eq for LengthFieldProto<B>[src]
impl<B: ByteOrder + 'static, T: Io + 'static> ServerProto<T> for LengthFieldProto<B>[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, LengthFieldCodec<B>>
The message transport, which works with I/O objects of type T. Read more
type BindTransport = Result<Self::Transport>
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<B: ByteOrder + 'static, T: Io + 'static> ClientProto<T> for LengthFieldProto<B>[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, LengthFieldCodec<B>>
The message transport, which works with I/O objects of type T. Read more
type BindTransport = Result<Self::Transport>
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