pub struct AudioHandler(/* private fields */);Expand description
See _cef_audio_handler_t for more documentation.
Implementations§
Source§impl AudioHandler
impl AudioHandler
pub fn new<T>(interface: T) -> Selfwhere
T: WrapAudioHandler,
Trait Implementations§
Source§impl Clone for AudioHandler
impl Clone for AudioHandler
Source§fn clone(&self) -> AudioHandler
fn clone(&self) -> AudioHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConvertParam<*mut _cef_audio_handler_t> for &AudioHandler
impl ConvertParam<*mut _cef_audio_handler_t> for &AudioHandler
fn into_raw(self) -> *mut _cef_audio_handler_t
Source§impl ConvertParam<*mut _cef_audio_handler_t> for &mut AudioHandler
impl ConvertParam<*mut _cef_audio_handler_t> for &mut AudioHandler
fn into_raw(self) -> *mut _cef_audio_handler_t
Source§impl ConvertReturnValue<AudioHandler> for *mut _cef_audio_handler_t
impl ConvertReturnValue<AudioHandler> for *mut _cef_audio_handler_t
fn wrap_result(self) -> AudioHandler
Source§impl From<AudioHandler> for *mut _cef_audio_handler_t
impl From<AudioHandler> for *mut _cef_audio_handler_t
Source§fn from(value: AudioHandler) -> Self
fn from(value: AudioHandler) -> Self
Converts to this type from the input type.
Source§impl ImplAudioHandler for AudioHandler
impl ImplAudioHandler for AudioHandler
Source§fn audio_parameters(
&self,
browser: Option<&mut Browser>,
params: Option<&mut AudioParameters>,
) -> c_int
fn audio_parameters( &self, browser: Option<&mut Browser>, params: Option<&mut AudioParameters>, ) -> c_int
See
_cef_audio_handler_t::get_audio_parameters for more documentation.Source§fn on_audio_stream_started(
&self,
browser: Option<&mut Browser>,
params: Option<&AudioParameters>,
channels: c_int,
)
fn on_audio_stream_started( &self, browser: Option<&mut Browser>, params: Option<&AudioParameters>, channels: c_int, )
See
_cef_audio_handler_t::on_audio_stream_started for more documentation.Source§fn on_audio_stream_packet(
&self,
browser: Option<&mut Browser>,
data: *mut *const f32,
frames: c_int,
pts: i64,
)
fn on_audio_stream_packet( &self, browser: Option<&mut Browser>, data: *mut *const f32, frames: c_int, pts: i64, )
See
_cef_audio_handler_t::on_audio_stream_packet for more documentation.Source§fn on_audio_stream_stopped(&self, browser: Option<&mut Browser>)
fn on_audio_stream_stopped(&self, browser: Option<&mut Browser>)
See
_cef_audio_handler_t::on_audio_stream_stopped for more documentation.Source§fn on_audio_stream_error(
&self,
browser: Option<&mut Browser>,
message: Option<&CefString>,
)
fn on_audio_stream_error( &self, browser: Option<&mut Browser>, message: Option<&CefString>, )
See
_cef_audio_handler_t::on_audio_stream_error for more documentation.fn get_raw(&self) -> *mut _cef_audio_handler_t
fn init_methods(object: &mut _cef_audio_handler_t)
Source§impl Rc for AudioHandler
impl Rc for AudioHandler
Source§fn as_base(&self) -> &_cef_base_ref_counted_t
fn as_base(&self) -> &_cef_base_ref_counted_t
Get the reference of cef_base_ref_counted_t.
Source§unsafe fn release(&self) -> bool
unsafe fn release(&self) -> bool
Decrease reference count by 1 and release the value if the count meets 0.
Reuturn
True if it is released. Read moreSource§fn has_one_ref(&self) -> bool
fn has_one_ref(&self) -> bool
True if the reference count is exactly 1.Source§fn has_at_least_one_ref(&self) -> bool
fn has_at_least_one_ref(&self) -> bool
True if the reference count is larger than 0.Auto Trait Implementations§
impl Freeze for AudioHandler
impl RefUnwindSafe for AudioHandler
impl Send for AudioHandler
impl Sync for AudioHandler
impl Unpin for AudioHandler
impl UnwindSafe for AudioHandler
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