Struct socketio_rs::ServerSocket
source · pub struct ServerSocket { /* private fields */ }
Implementations
sourceimpl 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)where
E: Into<Event>,
D: Into<Payload>,
pub async fn emit_to_with_ack<F, E, D>(
&self,
rooms: Vec<&str>,
event: E,
data: D,
timeout: Duration,
callback: F
)where
F: for<'a> FnMut(Option<Payload>, Self, Option<AckId>) -> BoxFuture<'static, ()> + 'static + Send + Sync + Clone,
E: Into<Event>,
D: Into<Payload>,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more