Struct jamsocket_server::RoomActor [−][src]
pub struct RoomActor { /* fields omitted */ }Expand description
Actor model representation of a “room”. A room is a set of clients that share an instance of a Jamsocket instance. Conceptually, this is like a room in a chat service. Events (such as messages) and their side-effects are isolated to the room in which they occur.
Implementations
pub fn new(
room_id: String,
service_actor: Recipient<MessageFromClient>,
shutdown_policy: ServiceShutdownPolicy
) -> Self
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RoomActor
impl !UnwindSafe for RoomActor
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more