Struct PixelflowHostApiV2
#[repr(C)]pub struct PixelflowHostApiV2 {
pub size: u32,
pub version: u32,
pub register_filter: unsafe extern "C" fn(*mut PixelflowRegistrar, *const PixelflowFilterDescriptorV2) -> PixelflowStatus,
pub register_metadata_key: unsafe extern "C" fn(*mut PixelflowRegistrar, PixelflowStringView, PixelflowMetadataKind) -> PixelflowStatus,
pub log: unsafe extern "C" fn(*mut PixelflowRegistrar, u32, PixelflowStringView),
pub reserved: [usize; 4],
}Expand description
Host callback table passed to plugins.
Fields§
§size: u32Struct size in bytes.
version: u32ABI version used by this struct.
register_filter: unsafe extern "C" fn(*mut PixelflowRegistrar, *const PixelflowFilterDescriptorV2) -> PixelflowStatusRegisters one filter.
register_metadata_key: unsafe extern "C" fn(*mut PixelflowRegistrar, PixelflowStringView, PixelflowMetadataKind) -> PixelflowStatusRegisters one metadata key.
log: unsafe extern "C" fn(*mut PixelflowRegistrar, u32, PixelflowStringView)Emits host log message.
reserved: [usize; 4]Reserved fields for future compatible extension.
Trait Implementations§
§impl Clone for PixelflowHostApiV2
impl Clone for PixelflowHostApiV2
§fn clone(&self) -> PixelflowHostApiV2
fn clone(&self) -> PixelflowHostApiV2
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 PixelflowHostApiV2
Auto Trait Implementations§
impl Freeze for PixelflowHostApiV2
impl RefUnwindSafe for PixelflowHostApiV2
impl Send for PixelflowHostApiV2
impl Sync for PixelflowHostApiV2
impl Unpin for PixelflowHostApiV2
impl UnsafeUnpin for PixelflowHostApiV2
impl UnwindSafe for PixelflowHostApiV2
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