pub struct GoogleRealtimeFactory { /* private fields */ }Expand description
Factory for Live API models and session tokens.
Implementations§
Source§impl GoogleRealtimeFactory
impl GoogleRealtimeFactory
Sourcepub fn new(config: SharedConfig) -> Self
pub fn new(config: SharedConfig) -> Self
Creates the factory.
Sourcepub fn realtime_model(&self, model_id: &str) -> GoogleRealtimeModel
pub fn realtime_model(&self, model_id: &str) -> GoogleRealtimeModel
Creates a realtime model.
Trait Implementations§
Source§impl Clone for GoogleRealtimeFactory
impl Clone for GoogleRealtimeFactory
Source§fn clone(&self) -> GoogleRealtimeFactory
fn clone(&self) -> GoogleRealtimeFactory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoogleRealtimeFactory
impl Debug for GoogleRealtimeFactory
Source§impl RealtimeFactory for GoogleRealtimeFactory
impl RealtimeFactory for GoogleRealtimeFactory
Source§fn provider(&self) -> &ProviderId
fn provider(&self) -> &ProviderId
Provider identifier.
Source§fn model(&self, model_id: &str) -> Result<RealtimeModelRef, NoSuchModelError>
fn model(&self, model_id: &str) -> Result<RealtimeModelRef, NoSuchModelError>
Returns the realtime model with
model_id. Read moreSource§async fn get_token(
&self,
options: GetTokenOptions,
) -> Result<ClientSecret, ProviderError>
async fn get_token( &self, options: GetTokenOptions, ) -> Result<ClientSecret, ProviderError>
Creates a session token for
options.model.Auto Trait Implementations§
impl !RefUnwindSafe for GoogleRealtimeFactory
impl !UnwindSafe for GoogleRealtimeFactory
impl Freeze for GoogleRealtimeFactory
impl Send for GoogleRealtimeFactory
impl Sync for GoogleRealtimeFactory
impl Unpin for GoogleRealtimeFactory
impl UnsafeUnpin for GoogleRealtimeFactory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more