pub struct Server { /* private fields */ }Expand description
WebSocket server
Implementations§
Source§impl Server
impl Server
Sourcepub fn new(config: ServerConfig) -> Self
pub fn new(config: ServerConfig) -> Self
Create a new server
Sourcepub fn manager(&self) -> &Arc<ConnectionManager>
pub fn manager(&self) -> &Arc<ConnectionManager>
Get connection manager
Sourcepub fn pool(&self) -> &Arc<ConnectionPool>
pub fn pool(&self) -> &Arc<ConnectionPool>
Get connection pool
Sourcepub fn heartbeat(&self) -> &Arc<HeartbeatMonitor>
pub fn heartbeat(&self) -> &Arc<HeartbeatMonitor>
Get heartbeat monitor
Auto Trait Implementations§
impl Freeze for Server
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin 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