#[repr(C)]pub struct NrPluginVTable {
pub init: Option<unsafe extern "C" fn(host_ctx: *mut c_void, host_vtable: *const NrHostVTable) -> NrStatus>,
pub handle: Option<unsafe extern "C" fn(entry: NrStr, sid: u64, payload: NrBytes) -> NrStatus>,
pub shutdown: Option<unsafe extern "C" fn()>,
pub stream_data: Option<unsafe extern "C" fn(sid: u64, data: NrBytes) -> NrStatus>,
pub stream_close: Option<unsafe extern "C" fn(sid: u64) -> NrStatus>,
}Expand description
Plugin function table.
Fields§
§init: Option<unsafe extern "C" fn(host_ctx: *mut c_void, host_vtable: *const NrHostVTable) -> NrStatus>§handle: Option<unsafe extern "C" fn(entry: NrStr, sid: u64, payload: NrBytes) -> NrStatus>§shutdown: Option<unsafe extern "C" fn()>§stream_data: Option<unsafe extern "C" fn(sid: u64, data: NrBytes) -> NrStatus>§stream_close: Option<unsafe extern "C" fn(sid: u64) -> NrStatus>Trait Implementations§
Source§impl Clone for NrPluginVTable
impl Clone for NrPluginVTable
Source§fn clone(&self) -> NrPluginVTable
fn clone(&self) -> NrPluginVTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NrPluginVTable
Source§impl Debug for NrPluginVTable
impl Debug for NrPluginVTable
impl Send for NrPluginVTable
impl Sync for NrPluginVTable
Auto Trait Implementations§
impl Freeze for NrPluginVTable
impl RefUnwindSafe for NrPluginVTable
impl Unpin for NrPluginVTable
impl UnsafeUnpin for NrPluginVTable
impl UnwindSafe for NrPluginVTable
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