Enum jamsocket_server::RoomIdStrategy [−][src]
pub enum RoomIdStrategy {
Implicit,
Explicit,
Generator(Box<dyn RoomIdGeneratorFactory + Send + Sync>),
}Expand description
Determines how new rooms are assigned an id.
Variants
Rooms are created when they are first accessed.
Rooms are created with an explicit API call that provides an ID.
Room IDs are created by an endpoint, which returns an ID generated by the provided generator.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RoomIdStrategy
impl Send for RoomIdStrategy
impl Sync for RoomIdStrategy
impl Unpin for RoomIdStrategy
impl !UnwindSafe for RoomIdStrategy
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