pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
pub fn start( addr: &SocketAddr, cfg: ServerConfig, handler: Handler, ) -> NetResult<Server>
pub fn start_with( addr: &SocketAddr, cfg: ServerConfig, handler: Handler, wrap: Option<Wrap>, ) -> NetResult<Server>
pub fn local_addr(&self) -> SocketAddr
Auto Trait Implementations§
impl !RefUnwindSafe for Server
impl !Sync for Server
impl !UnwindSafe for Server
impl Forget for Server
impl Freeze for Serverwhere
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Thread>: Freeze,
*const ArcInner<Mutex<Vec<(Arc<Atomic<bool>>, Thread)>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Vec<(Arc<Atomic<bool>>, Thread)>>>>: Freeze,
impl Move for Server
impl Send for Server
impl Unpin for Server
impl UnsafeUnpin for Serverwhere
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Thread>: UnsafeUnpin,
*const ArcInner<Mutex<Vec<(Arc<Atomic<bool>>, Thread)>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Vec<(Arc<Atomic<bool>>, Thread)>>>>: UnsafeUnpin,
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