pub struct ServerSocket { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn sid(&self) -> Sid
pub fn namespace(&self) -> String
pub async fn join<T: Into<String>>(&self, rooms: Vec<T>)
pub async fn leave(&self, rooms: Vec<&str>)
pub async fn emit_to<E, D>(&self, rooms: Vec<&str>, event: E, data: D)
pub async fn emit_to_with_ack<F, E, D>( &self, rooms: Vec<&str>, event: E, data: D, timeout: Duration, callback: F, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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