Struct framecodecs::remote_addr::RemoteAddrProto
[−]
[src]
pub struct RemoteAddrProto<C, Kind> { /* fields omitted */ }
A wrapper protocol provides remote address of connection.
This protocol implements only ServerProto
.
Methods
impl<C: Clone, Kind> RemoteAddrProto<C, Kind>
[src]
fn new(inner: C) -> Self
Trait Implementations
impl<C: Debug, Kind: Debug> Debug for RemoteAddrProto<C, Kind>
[src]
impl<C: Clone, Kind: Clone> Clone for RemoteAddrProto<C, Kind>
[src]
fn clone(&self) -> RemoteAddrProto<C, Kind>
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<C: Copy, Kind: Copy> Copy for RemoteAddrProto<C, Kind>
[src]
impl<C> ServerProto<TcpStream> for RemoteAddrProto<C, Pipeline> where C: Codec + Clone + 'static
[src]
type Request = (SocketAddr, C::In)
Request messages.
type Response = C::Out
Response messages.
type Error = Error
Errors produced by the service.
type Transport = Framed<TcpStream, RemoteAddrCodec<C, Pipeline>>
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: TcpStream) -> Self::BindTransport
Build a transport from the given I/O object, using self
for any configuration. Read more
impl<C, In, Out> ServerProto<TcpStream> for RemoteAddrProto<C, Multiplex> where C: Codec<In=(RequestId, In), Out=(RequestId, Out)> + Clone + 'static,
In: 'static,
Out: 'static
[src]
In: 'static,
Out: 'static
type Request = (SocketAddr, In)
Request messages.
type Response = Out
Response messages.
type Error = Error
Errors produced by the service.
type Transport = Framed<TcpStream, RemoteAddrCodec<C, Multiplex>>
The message transport, which usually take T
as a parameter. 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: TcpStream) -> Self::BindTransport
Build a transport from the given I/O object, using self
for any configuration. Read more