pub struct Server<H>{ /* private fields */ }
Expand description
Implements observer pattern All this server does is manage clients and verify messaging format as well as managing sending and receiving messages
Implementations§
source§impl<H> Server<H>
impl<H> Server<H>
sourcepub fn get_addr(&self) -> SocketAddr
pub fn get_addr(&self) -> SocketAddr
Get socket addr
pub fn new(address: SocketAddr, message_handler: H) -> Self
Auto Trait Implementations§
impl<H> Freeze for Server<H>
impl<H> !RefUnwindSafe for Server<H>
impl<H> Send for Server<H>
impl<H> Sync for Server<H>
impl<H> Unpin for Server<H>
impl<H> !UnwindSafe for Server<H>
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