pub struct VoxRtcControlSession { /* private fields */ }Implementations§
Source§impl VoxRtcControlSession
impl VoxRtcControlSession
pub fn session_id(&self) -> &str
pub fn channel_name(&self) -> &str
pub async fn join(&self) -> Result<()>
pub async fn close(&self) -> Result<()>
pub fn on_event<F>(&self, handler: F) -> Listener
pub fn on<F>(&self, event_name: impl Into<String>, handler: F) -> Listener
pub fn on_session_attached<F>(&self, handler: F) -> Listener
pub fn on_session_created<F>(&self, handler: F) -> Listener
pub fn on_transcript<F>(&self, handler: F) -> Listener
pub fn on_turn_state_changed<F>(&self, handler: F) -> Listener
pub fn on_response_created<F>(&self, handler: F) -> Listener
pub fn on_response_committed<F>(&self, handler: F) -> Listener
pub fn on_response_done<F>(&self, handler: F) -> Listener
pub fn on_response_cancelled<F>(&self, handler: F) -> Listener
pub fn on_response_audio_clear<F>(&self, handler: F) -> Listener
pub fn on_interruption_detected<F>(&self, handler: F) -> Listener
pub fn on_interruption_false_positive<F>(&self, handler: F) -> Listener
pub fn on_browser_event<F>(&self, handler: F) -> Listener
pub fn on_close<F>(&self, handler: F) -> Listener
pub fn on_error<F>(&self, handler: F) -> Listener
pub async fn send_control(&self, event: &str, payload: EventData) -> Result<()>
pub async fn configure(&self, config: SessionConfig) -> Result<()>
pub async fn start_response( &self, options: Option<ResponseOptions>, ) -> Result<()>
pub async fn append_response_text( &self, delta: impl Into<String>, options: Option<ResponseOptions>, ) -> Result<()>
pub async fn commit_response(&self) -> Result<()>
pub async fn cancel_response(&self) -> Result<()>
pub async fn replace_response_text( &self, text: impl Into<String>, options: Option<ResponseOptions>, ) -> Result<()>
pub async fn send_text_response( &self, text: impl Into<String>, options: Option<ResponseOptions>, cancel_first: bool, ) -> Result<()>
pub async fn send_client_event( &self, envelope: ClientEventEnvelope, ) -> Result<()>
Trait Implementations§
Source§impl Clone for VoxRtcControlSession
impl Clone for VoxRtcControlSession
Source§fn clone(&self) -> VoxRtcControlSession
fn clone(&self) -> VoxRtcControlSession
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 moreAuto Trait Implementations§
impl Freeze for VoxRtcControlSession
impl !RefUnwindSafe for VoxRtcControlSession
impl Send for VoxRtcControlSession
impl Sync for VoxRtcControlSession
impl Unpin for VoxRtcControlSession
impl UnsafeUnpin for VoxRtcControlSession
impl !UnwindSafe for VoxRtcControlSession
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