Struct framecodecs::fixed_length::FixedLengthProto
[−]
[src]
pub struct FixedLengthProto { pub length: usize, }
A protocol such that frames are continuous and have the same specified length.
Fields
length: usize
Methods
impl FixedLengthProto
[src]
fn new(length: usize) -> FixedLengthProto
Trait Implementations
impl Debug for FixedLengthProto
[src]
impl Clone for FixedLengthProto
[src]
fn clone(&self) -> FixedLengthProto
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 Copy for FixedLengthProto
[src]
impl PartialEq for FixedLengthProto
[src]
fn eq(&self, __arg_0: &FixedLengthProto) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FixedLengthProto) -> bool
This method tests for !=
.
impl Eq for FixedLengthProto
[src]
impl<T: Io + 'static> ServerProto<T> for FixedLengthProto
[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, FixedLengthCodec>
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<T: Io + 'static> ClientProto<T> for FixedLengthProto
[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, FixedLengthCodec>
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