#[repr(C)]pub struct janus_plugin {Show 21 fields
pub init: unsafe extern "C" fn(callback: *mut janus_callbacks, config_path: *const c_char) -> c_int,
pub destroy: unsafe extern "C" fn(),
pub get_api_compatibility: unsafe extern "C" fn() -> c_int,
pub get_version: unsafe extern "C" fn() -> c_int,
pub get_version_string: unsafe extern "C" fn() -> *const c_char,
pub get_description: unsafe extern "C" fn() -> *const c_char,
pub get_name: unsafe extern "C" fn() -> *const c_char,
pub get_author: unsafe extern "C" fn() -> *const c_char,
pub get_package: unsafe extern "C" fn() -> *const c_char,
pub create_session: unsafe extern "C" fn(handle: *mut janus_plugin_session, error: *mut c_int),
pub handle_message: unsafe extern "C" fn(handle: *mut janus_plugin_session, transaction: *mut c_char, message: *mut json_t, jsep: *mut json_t) -> *mut janus_plugin_result,
pub handle_admin_message: unsafe extern "C" fn(message: *mut json_t) -> *mut json_t,
pub setup_media: unsafe extern "C" fn(handle: *mut janus_plugin_session),
pub incoming_rtp: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtp),
pub incoming_rtcp: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtcp),
pub incoming_data: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_data),
pub data_ready: unsafe extern "C" fn(handle: *mut janus_plugin_session),
pub slow_link: unsafe extern "C" fn(handle: *mut janus_plugin_session, uplink: c_int, video: c_int),
pub hangup_media: unsafe extern "C" fn(handle: *mut janus_plugin_session),
pub destroy_session: unsafe extern "C" fn(handle: *mut janus_plugin_session, error: *mut c_int),
pub query_session: unsafe extern "C" fn(handle: *mut janus_plugin_session) -> *mut json_t,
}Fields§
§init: unsafe extern "C" fn(callback: *mut janus_callbacks, config_path: *const c_char) -> c_int§destroy: unsafe extern "C" fn()§get_api_compatibility: unsafe extern "C" fn() -> c_int§get_version: unsafe extern "C" fn() -> c_int§get_version_string: unsafe extern "C" fn() -> *const c_char§get_description: unsafe extern "C" fn() -> *const c_char§get_name: unsafe extern "C" fn() -> *const c_char§get_package: unsafe extern "C" fn() -> *const c_char§create_session: unsafe extern "C" fn(handle: *mut janus_plugin_session, error: *mut c_int)§handle_message: unsafe extern "C" fn(handle: *mut janus_plugin_session, transaction: *mut c_char, message: *mut json_t, jsep: *mut json_t) -> *mut janus_plugin_result§handle_admin_message: unsafe extern "C" fn(message: *mut json_t) -> *mut json_t§setup_media: unsafe extern "C" fn(handle: *mut janus_plugin_session)§incoming_rtp: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtp)§incoming_rtcp: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtcp)§incoming_data: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_data)§data_ready: unsafe extern "C" fn(handle: *mut janus_plugin_session)§slow_link: unsafe extern "C" fn(handle: *mut janus_plugin_session, uplink: c_int, video: c_int)§hangup_media: unsafe extern "C" fn(handle: *mut janus_plugin_session)§destroy_session: unsafe extern "C" fn(handle: *mut janus_plugin_session, error: *mut c_int)§query_session: unsafe extern "C" fn(handle: *mut janus_plugin_session) -> *mut json_tTrait Implementations§
Auto Trait Implementations§
impl Freeze for janus_plugin
impl RefUnwindSafe for janus_plugin
impl Send for janus_plugin
impl Sync for janus_plugin
impl Unpin for janus_plugin
impl UnwindSafe for janus_plugin
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