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

Implicit

Rooms are created when they are first accessed.

Explicit

Rooms are created with an explicit API call that provides an ID.

Generator(Box<dyn RoomIdGeneratorFactory + Send + Sync>)

Room IDs are created by an endpoint, which returns an ID generated by the provided generator.

Tuple Fields of Generator

0: Box<dyn RoomIdGeneratorFactory + Send + Sync>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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