Trait jamsocket::JamsocketServiceFactory[][src]

pub trait JamsocketServiceFactory<C: JamsocketContext>: Send + Sync + 'static {
    type Service: JamsocketService;
    fn build(&self, room_id: &str, context: C) -> Option<Self::Service>;
}
Expand description

Enables an object to become a JamsocketService of the associated Service type.

Associated Types

The type of JamsocketService that the object implementing this trait builds.

Required methods

Non-destructively build a JamsocketService from self.

Implementors