pub struct Server { /* private fields */ }Expand description
A proxy serving on its own thread until Server::stop, or until it is
dropped.
Implementations§
Source§impl Server
impl Server
pub fn local_addr(&self) -> SocketAddr
Sourcepub fn stop(self)
pub fn stop(self)
Stops accepting, closes the listener and cuts every open connection;
returns once each of them has ended and the gate has heard how
(Gate::finished), or after a few seconds at most.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Server
impl !UnwindSafe for Server
impl Forget for Server
impl Freeze for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
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