Plugin

Struct Plugin 

Source
#[repr(C)]
pub struct Plugin {
Show 21 fields pub init: unsafe extern "C" fn(*mut janus_callbacks, *const i8) -> i32, pub destroy: unsafe extern "C" fn(), pub get_api_compatibility: unsafe extern "C" fn() -> i32, pub get_version: unsafe extern "C" fn() -> i32, pub get_version_string: unsafe extern "C" fn() -> *const i8, pub get_description: unsafe extern "C" fn() -> *const i8, pub get_name: unsafe extern "C" fn() -> *const i8, pub get_author: unsafe extern "C" fn() -> *const i8, pub get_package: unsafe extern "C" fn() -> *const i8, pub create_session: unsafe extern "C" fn(*mut janus_plugin_session, *mut i32), pub handle_message: unsafe extern "C" fn(*mut janus_plugin_session, *mut i8, *mut json_t, *mut json_t) -> *mut janus_plugin_result, pub handle_admin_message: unsafe extern "C" fn(*mut json_t) -> *mut json_t, pub setup_media: unsafe extern "C" fn(*mut janus_plugin_session), pub incoming_rtp: unsafe extern "C" fn(*mut janus_plugin_session, *mut janus_plugin_rtp), pub incoming_rtcp: unsafe extern "C" fn(*mut janus_plugin_session, *mut janus_plugin_rtcp), pub incoming_data: unsafe extern "C" fn(*mut janus_plugin_session, *mut janus_plugin_data), pub data_ready: unsafe extern "C" fn(*mut janus_plugin_session), pub slow_link: unsafe extern "C" fn(*mut janus_plugin_session, i32, i32), pub hangup_media: unsafe extern "C" fn(*mut janus_plugin_session), pub destroy_session: unsafe extern "C" fn(*mut janus_plugin_session, *mut i32), pub query_session: unsafe extern "C" fn(*mut janus_plugin_session) -> *mut json_t,
}

Fields§

§init: unsafe extern "C" fn(*mut janus_callbacks, *const i8) -> i32§destroy: unsafe extern "C" fn()§get_api_compatibility: unsafe extern "C" fn() -> i32§get_version: unsafe extern "C" fn() -> i32§get_version_string: unsafe extern "C" fn() -> *const i8§get_description: unsafe extern "C" fn() -> *const i8§get_name: unsafe extern "C" fn() -> *const i8§get_author: unsafe extern "C" fn() -> *const i8§get_package: unsafe extern "C" fn() -> *const i8§create_session: unsafe extern "C" fn(*mut janus_plugin_session, *mut i32)§handle_message: unsafe extern "C" fn(*mut janus_plugin_session, *mut i8, *mut json_t, *mut json_t) -> *mut janus_plugin_result§handle_admin_message: unsafe extern "C" fn(*mut json_t) -> *mut json_t§setup_media: unsafe extern "C" fn(*mut janus_plugin_session)§incoming_rtp: unsafe extern "C" fn(*mut janus_plugin_session, *mut janus_plugin_rtp)§incoming_rtcp: unsafe extern "C" fn(*mut janus_plugin_session, *mut janus_plugin_rtcp)§incoming_data: unsafe extern "C" fn(*mut janus_plugin_session, *mut janus_plugin_data)§data_ready: unsafe extern "C" fn(*mut janus_plugin_session)§slow_link: unsafe extern "C" fn(*mut janus_plugin_session, i32, i32)§hangup_media: unsafe extern "C" fn(*mut janus_plugin_session)§destroy_session: unsafe extern "C" fn(*mut janus_plugin_session, *mut i32)§query_session: unsafe extern "C" fn(*mut janus_plugin_session) -> *mut json_t

Trait Implementations§

Source§

impl Debug for janus_plugin

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.