Struct stateroom_server::ServiceActorContext
source · pub struct ServiceActorContext { /* private fields */ }Expand description
A StateroomContext implementation for StateroomServices hosted in the context of a ServiceActor.
Trait Implementations§
source§impl Clone for ServiceActorContext
impl Clone for ServiceActorContext
source§fn clone(&self) -> ServiceActorContext
fn clone(&self) -> ServiceActorContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl StateroomContext for ServiceActorContext
impl StateroomContext for ServiceActorContext
source§fn send_message(&self, recipient: impl Into<MessageRecipient>, message: &str)
fn send_message(&self, recipient: impl Into<MessageRecipient>, message: &str)
Sends a message to a currently connected user, or broadcast a message to all users. Read more
source§fn send_binary(&self, recipient: impl Into<MessageRecipient>, message: &[u8])
fn send_binary(&self, recipient: impl Into<MessageRecipient>, message: &[u8])
Sends a binary message to a currently connected user, or broadcast a message to all users. Read more