Skip to main content

DynRealtimeFactory

Trait DynRealtimeFactory 

Source
pub trait DynRealtimeFactory:
    Send
    + Sync
    + 'static {
    // Required methods
    fn provider(&self) -> &ProviderId;
    fn model(
        &self,
        model_id: &str,
    ) -> Result<RealtimeModelRef, NoSuchModelError>;
    fn get_token(
        &self,
        options: GetTokenOptions,
    ) -> BoxFuture<'_, Result<ClientSecret, ProviderError>>;
}
Expand description

Object-safe counterpart of RealtimeFactory.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§