Struct fibers_transport::TcpListenerBuilder [−][src]
pub struct TcpListenerBuilder<E, D> { /* fields omitted */ }
TcpListener
builder.
Methods
impl<E, D> TcpListenerBuilder<E, D> where
E: Factory + Default,
D: Factory + Default,
E::Item: Encode,
D::Item: Decode,
[src]
impl<E, D> TcpListenerBuilder<E, D> where
E: Factory + Default,
D: Factory + Default,
E::Item: Encode,
D::Item: Decode,
impl<E, D> TcpListenerBuilder<E, D> where
E: Factory,
D: Factory,
E::Item: Encode,
D::Item: Decode,
[src]
impl<E, D> TcpListenerBuilder<E, D> where
E: Factory,
D: Factory,
E::Item: Encode,
D::Item: Decode,
pub fn with_codec(encoder_factory: E, decoder_factory: D) -> Self
[src]
pub fn with_codec(encoder_factory: E, decoder_factory: D) -> Self
Makes a new TcpListenerBuilder
instance with the given encoder and decoder factories.
pub fn finish(self, listener: RawTcpListener) -> Result<TcpListener<E, D>>
[src]
pub fn finish(self, listener: RawTcpListener) -> Result<TcpListener<E, D>>
Builds a new TcpListener
instance from the given RawTcpListener
.
pub fn listen(
self,
bind_addr: SocketAddr
) -> impl Future<Item = TcpListener<E, D>, Error = Error>
[src]
pub fn listen(
self,
bind_addr: SocketAddr
) -> impl Future<Item = TcpListener<E, D>, Error = Error>
Builds a new TcpListener
instance that binds to and listens in the given address.
Trait Implementations
impl<E: Debug, D: Debug> Debug for TcpListenerBuilder<E, D>
[src]
impl<E: Debug, D: Debug> Debug for TcpListenerBuilder<E, D>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<E, D> Default for TcpListenerBuilder<E, D> where
E: Factory + Default,
D: Factory + Default,
E::Item: Encode,
D::Item: Decode,
[src]
impl<E, D> Default for TcpListenerBuilder<E, D> where
E: Factory + Default,
D: Factory + Default,
E::Item: Encode,
D::Item: Decode,
Auto Trait Implementations
impl<E, D> Send for TcpListenerBuilder<E, D> where
D: Send,
E: Send,
impl<E, D> Send for TcpListenerBuilder<E, D> where
D: Send,
E: Send,
impl<E, D> Sync for TcpListenerBuilder<E, D> where
D: Sync,
E: Sync,
impl<E, D> Sync for TcpListenerBuilder<E, D> where
D: Sync,
E: Sync,