Struct socketio_rs::Server
source · pub struct Server { /* private fields */ }
Implementations
sourceimpl Server
impl Server
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
)where
E: Into<Event>,
D: Into<Payload>,
pub async fn emit_to_with_ack<F, E, D>(
&self,
nsp: &str,
rooms: Vec<&str>,
event: E,
data: D,
timeout: Duration,
callback: F
)where
F: for<'a> FnMut(Option<Payload>, ServerSocket, Option<AckId>) -> BoxFuture<'static, ()> + 'static + Send + Sync + Clone,
E: Into<Event>,
D: Into<Payload>,
Auto Trait Implementations
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
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