pub struct Server(_);
Implementations
sourceimpl Server
impl Server
pub fn listen<A: ToSocketAddrs>(addr: A) -> Result<Self, Error>
pub fn accept(&self) -> Result<Connection, Error>
pub fn local_addr(&self) -> Result<SocketAddr, Error>
Auto Trait Implementations
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more