#[repr(C)]pub struct PixelflowHostApiV1 {
pub size: u32,
pub version: u32,
pub register_filter: unsafe extern "C" fn(*mut PixelflowRegistrar, *const PixelflowFilterDescriptorV1) -> 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 PixelflowFilterDescriptorV1) -> 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§
Source§impl Clone for PixelflowHostApiV1
impl Clone for PixelflowHostApiV1
Source§fn clone(&self) -> PixelflowHostApiV1
fn clone(&self) -> PixelflowHostApiV1
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 PixelflowHostApiV1
Auto Trait Implementations§
impl Freeze for PixelflowHostApiV1
impl RefUnwindSafe for PixelflowHostApiV1
impl Send for PixelflowHostApiV1
impl Sync for PixelflowHostApiV1
impl Unpin for PixelflowHostApiV1
impl UnsafeUnpin for PixelflowHostApiV1
impl UnwindSafe for PixelflowHostApiV1
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