pub struct Client {
pub client: Client,
pub config: Config,
}
Fields§
§client: Client
§config: Config
Implementations§
Source§impl Client
impl Client
pub fn new(client: BaseClient, config: Config) -> Self
pub async fn connect(auth: Auth, config: Config) -> Result<Self>
pub async fn disconnect(&self) -> Result<()>
pub async fn recognize_file( &self, path: impl Into<PathBuf>, ) -> Result<impl Stream<Item = Result<Event>>>
pub async fn recognize<A>( &self, audio: A, audio_format: AudioFormat, audio_device: AudioDevice, ) -> Result<impl Stream<Item = Result<Event>>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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