pub struct TcpBinder(/* private fields */);Expand description
A utility for binding TCP listeners.
See PoolExt::tcp_binder for details.
Implementations§
Source§impl TcpBinder
impl TcpBinder
Sourcepub fn bind_existing_tcp_listener(&self, listener: &TcpListener) -> Result<()>
pub fn bind_existing_tcp_listener(&self, listener: &TcpListener) -> Result<()>
Bind a TcpListener.
A newly-created TcpListener created with TcpListenerExt::new
has not been bound yet; this function binds it. Before it can accept
connections, it must be marked for listening with
TcpListenerExt::listen.
This is similar to Pool::bind_tcp_listener in that it binds a TCP
socket, however it does not create the socket itself, or perform the
listen step.
This is similar to PoolExt::bind_existing_tcp_listener except that
it uses a TcpBinder which contains addresses that have already been
checked against a Pool.
Auto Trait Implementations§
impl Freeze for TcpBinder
impl RefUnwindSafe for TcpBinder
impl Send for TcpBinder
impl Sync for TcpBinder
impl Unpin for TcpBinder
impl UnwindSafe for TcpBinder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more