pub struct Server { /* private fields */ }
Implementations§
Source§impl Server
impl Server
pub fn client_count(self: &Arc<Self>) -> usize
pub async fn serve(self: Arc<Self>)
pub async fn emit_to<E, D>( self: &Arc<Self>, nsp: &str, rooms: Vec<&str>, event: E, data: D, )
pub async fn emit_to_with_ack<F, E, D>( &self, nsp: &str, rooms: Vec<&str>, event: E, data: D, timeout: Duration, callback: F, )
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