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
type Service: JamsocketService
type Service: JamsocketService
The type of JamsocketService that the object implementing this trait builds.