#[repr(C)]pub struct _cef_media_route_create_callback_t {
pub base: cef_base_ref_counted_t,
pub on_media_route_create_finished: Option<unsafe extern "C" fn(self_: *mut _cef_media_route_create_callback_t, result: cef_media_route_create_result_t, error: *const cef_string_t, route: *mut _cef_media_route_t)>,
}Expand description
Callback structure for cef_media_router_t::CreateRoute. 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_media_route_create_finished: Option<unsafe extern "C" fn(self_: *mut _cef_media_route_create_callback_t, result: cef_media_route_create_result_t, error: *const cef_string_t, route: *mut _cef_media_route_t)>Method that will be executed when the route creation has finished. |result| will be CEF_MRCR_OK if the route creation succeeded. |error| will be a description of the error if the route creation failed. |route| is the resulting route, or NULL if the route creation failed.
Trait Implementations§
Source§impl Clone for _cef_media_route_create_callback_t
impl Clone for _cef_media_route_create_callback_t
Source§fn clone(&self) -> _cef_media_route_create_callback_t
fn clone(&self) -> _cef_media_route_create_callback_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 moreimpl Copy for _cef_media_route_create_callback_t
Auto Trait Implementations§
impl Freeze for _cef_media_route_create_callback_t
impl RefUnwindSafe for _cef_media_route_create_callback_t
impl Send for _cef_media_route_create_callback_t
impl Sync for _cef_media_route_create_callback_t
impl Unpin for _cef_media_route_create_callback_t
impl UnwindSafe for _cef_media_route_create_callback_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