#[repr(C)]pub struct janus_callbacks {
pub push_event: extern "C" fn(handle: *mut janus_plugin_session, plugin: *mut janus_plugin, transaction: *const c_char, message: *mut json_t, jsep: *mut json_t) -> c_int,
pub relay_rtp: extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtp),
pub relay_rtcp: extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtcp),
pub relay_data: extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_data),
pub send_pli: extern "C" fn(handle: *mut janus_plugin_session),
pub send_remb: extern "C" fn(handle: *mut janus_plugin_session, bitrate: c_int),
pub close_pc: extern "C" fn(handle: *mut janus_plugin_session),
pub end_session: extern "C" fn(handle: *mut janus_plugin_session),
pub events_is_enabled: extern "C" fn() -> c_int,
pub notify_event: extern "C" fn(plugin: *mut janus_plugin, handle: *mut janus_plugin_session, event: *mut json_t),
pub auth_is_signature_valid: extern "C" fn(plugin: *mut janus_plugin, token: *const c_char) -> gboolean,
pub auth_signature_contains: extern "C" fn(plugin: *mut janus_plugin, token: *const c_char, descriptor: *const c_char) -> gboolean,
}Fields§
§push_event: extern "C" fn(handle: *mut janus_plugin_session, plugin: *mut janus_plugin, transaction: *const c_char, message: *mut json_t, jsep: *mut json_t) -> c_int§relay_rtp: extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtp)§relay_rtcp: extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtcp)§relay_data: extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_data)§send_pli: extern "C" fn(handle: *mut janus_plugin_session)§send_remb: extern "C" fn(handle: *mut janus_plugin_session, bitrate: c_int)§close_pc: extern "C" fn(handle: *mut janus_plugin_session)§end_session: extern "C" fn(handle: *mut janus_plugin_session)§events_is_enabled: extern "C" fn() -> c_int§notify_event: extern "C" fn(plugin: *mut janus_plugin, handle: *mut janus_plugin_session, event: *mut json_t)§auth_is_signature_valid: extern "C" fn(plugin: *mut janus_plugin, token: *const c_char) -> gboolean§auth_signature_contains: extern "C" fn(plugin: *mut janus_plugin, token: *const c_char, descriptor: *const c_char) -> gbooleanTrait Implementations§
Auto Trait Implementations§
impl Freeze for janus_callbacks
impl RefUnwindSafe for janus_callbacks
impl Send for janus_callbacks
impl Sync for janus_callbacks
impl Unpin for janus_callbacks
impl UnwindSafe for janus_callbacks
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