pub struct RelayServer { /* private fields */ }Expand description
A running relay server. Dropping the handle aborts the accept loop.
Implementations§
Source§impl RelayServer
impl RelayServer
Sourcepub fn addr(&self) -> SocketAddr
pub fn addr(&self) -> SocketAddr
The bound address (resolve 127.0.0.1:0 to its actual port for clients).
Trait Implementations§
Source§impl Drop for RelayServer
impl Drop for RelayServer
Auto Trait Implementations§
impl Freeze for RelayServer
impl !RefUnwindSafe for RelayServer
impl Send for RelayServer
impl Sync for RelayServer
impl Unpin for RelayServer
impl UnsafeUnpin for RelayServer
impl !UnwindSafe for RelayServer
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