pub struct Server { /* private fields */ }Expand description
WebSocket server
Implementations§
Source§impl Server
impl Server
Sourcepub fn new(config: ServerConfig, handler: BoxedHandler) -> Self
pub fn new(config: ServerConfig, handler: BoxedHandler) -> Self
Create a new server with the given config and handler
Sourcepub fn builder() -> ServerBuilder
pub fn builder() -> ServerBuilder
Create a server builder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Server
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe 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