pub struct WebAudioClient { /* private fields */ }Expand description
Client for WebAudio domain commands.
Implementations§
Source§impl WebAudioClient
impl WebAudioClient
Sourcepub async fn enable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
pub async fn enable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
Enables the WebAudio domain and starts sending context lifetime events.
Sourcepub async fn disable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
pub async fn disable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
Disables the WebAudio domain.
Sourcepub async fn get_realtime_data(
&self,
params: GetRealtimeDataParams,
session_id: Option<&str>,
) -> Result<GetRealtimeDataReturns, CdpError>
pub async fn get_realtime_data( &self, params: GetRealtimeDataParams, session_id: Option<&str>, ) -> Result<GetRealtimeDataReturns, CdpError>
Fetch the realtime data from the registered contexts.
Auto Trait Implementations§
impl Freeze for WebAudioClient
impl !RefUnwindSafe for WebAudioClient
impl Send for WebAudioClient
impl Sync for WebAudioClient
impl Unpin for WebAudioClient
impl UnsafeUnpin for WebAudioClient
impl !UnwindSafe for WebAudioClient
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