pub struct DisposableServer { /* private fields */ }Expand description
DisposableServer: what TcpTransportBase::listen returns. Disposing
it stops the listening; connections that were accepted stay open. As in
the original, a server that is never disposed keeps listening.
Implementations§
Source§impl DisposableServer
impl DisposableServer
Sourcepub fn local_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
The address the server listens on, with the port the system assigned
when the port asked for was zero. (An addition of the port: the
original hands out only the IDisposable.)
pub fn dispose(&self)
Auto Trait Implementations§
impl Freeze for DisposableServer
impl RefUnwindSafe for DisposableServer
impl Send for DisposableServer
impl Sync for DisposableServer
impl Unpin for DisposableServer
impl UnsafeUnpin for DisposableServer
impl UnwindSafe for DisposableServer
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