#[repr(C)]pub struct _cef_media_observer_t {
pub base: cef_base_ref_counted_t,
pub on_sinks: Option<unsafe extern "C" fn(self_: *mut _cef_media_observer_t, sinksCount: usize, sinks: *const *mut _cef_media_sink_t)>,
pub on_routes: Option<unsafe extern "C" fn(self_: *mut _cef_media_observer_t, routesCount: usize, routes: *const *mut _cef_media_route_t)>,
pub on_route_state_changed: Option<unsafe extern "C" fn(self_: *mut _cef_media_observer_t, route: *mut _cef_media_route_t, state: cef_media_route_connection_state_t)>,
pub on_route_message_received: Option<unsafe extern "C" fn(self_: *mut _cef_media_observer_t, route: *mut _cef_media_route_t, message: *const c_void, message_size: usize)>,
}Expand description
Implemented by the client to observe MediaRouter events and registered via cef_media_router_t::AddObserver. The functions of this structure will be called on the browser process UI thread.
NOTE: This struct is allocated client-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
on_sinks: Option<unsafe extern "C" fn(self_: *mut _cef_media_observer_t, sinksCount: usize, sinks: *const *mut _cef_media_sink_t)>The list of available media sinks has changed or cef_media_router_t::NotifyCurrentSinks was called.
on_routes: Option<unsafe extern "C" fn(self_: *mut _cef_media_observer_t, routesCount: usize, routes: *const *mut _cef_media_route_t)>The list of available media routes has changed or cef_media_router_t::NotifyCurrentRoutes was called.
on_route_state_changed: Option<unsafe extern "C" fn(self_: *mut _cef_media_observer_t, route: *mut _cef_media_route_t, state: cef_media_route_connection_state_t)>The connection state of |route| has changed.
on_route_message_received: Option<unsafe extern "C" fn(self_: *mut _cef_media_observer_t, route: *mut _cef_media_route_t, message: *const c_void, message_size: usize)>A message was received over |route|. |message| is only valid for the scope of this callback and should be copied if necessary.
Trait Implementations§
Source§impl Clone for _cef_media_observer_t
impl Clone for _cef_media_observer_t
Source§fn clone(&self) -> _cef_media_observer_t
fn clone(&self) -> _cef_media_observer_t
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 Debug for _cef_media_observer_t
impl Debug for _cef_media_observer_t
impl Copy for _cef_media_observer_t
Auto Trait Implementations§
impl Freeze for _cef_media_observer_t
impl RefUnwindSafe for _cef_media_observer_t
impl Send for _cef_media_observer_t
impl Sync for _cef_media_observer_t
impl Unpin for _cef_media_observer_t
impl UnwindSafe for _cef_media_observer_t
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