Struct framecodecs::delimiter::DelimiterProto
[−]
[src]
pub struct DelimiterProto<D>(_);
A protocol such that frames are separated with specified delimiters.
Methods
impl<D: Delimiter> DelimiterProto<D>
[src]
fn new(delimiter: D) -> Self
Creates a DelimiterProto
from the specified delimiter.
Trait Implementations
impl<D: Debug> Debug for DelimiterProto<D>
[src]
impl<D: Clone> Clone for DelimiterProto<D>
[src]
fn clone(&self) -> DelimiterProto<D>
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<D: Copy> Copy for DelimiterProto<D>
[src]
impl<D: PartialEq> PartialEq for DelimiterProto<D>
[src]
fn eq(&self, __arg_0: &DelimiterProto<D>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DelimiterProto<D>) -> bool
This method tests for !=
.
impl<D: Eq> Eq for DelimiterProto<D>
[src]
impl<T, D> ServerProto<T> for DelimiterProto<D> where T: Io + 'static,
D: Delimiter + Clone + 'static
[src]
D: Delimiter + Clone + 'static
type Request = Vec<u8>
Request messages.
type Response = Vec<u8>
Response messages.
type Error = Error
Errors produced by the service.
type Transport = Framed<T, DelimiterCodec<D>>
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: Io, D> ClientProto<T> for DelimiterProto<D> where T: Io + 'static,
D: Delimiter + Clone + 'static
[src]
D: Delimiter + Clone + 'static
type Request = Vec<u8>
Request messages.
type Response = Vec<u8>
Response messages.
type Error = Error
Errors produced by the service.
type Transport = Framed<T, DelimiterCodec<D>>
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