#[repr(C)]pub struct VtableHeader {
pub size: u32,
pub flags: u32,
pub free: unsafe extern "C" fn(ctx: *mut c_void),
}Expand description
The fixed header every callback-interface vtable starts with, in this
order and at these offsets ({prefix}_..._vtable in C).
Fields§
§size: u32sizeof the whole vtable as the consumer compiled it.
flags: u32Reserved; consumers set it to 0.
free: unsafe extern "C" fn(ctx: *mut c_void)The consumer’s release hook, called exactly once (from any producer thread) when the producer drops its last reference to the callback.
Trait Implementations§
Source§impl Clone for VtableHeader
impl Clone for VtableHeader
Source§fn clone(&self) -> VtableHeader
fn clone(&self) -> VtableHeader
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 VtableHeader
Auto Trait Implementations§
impl Freeze for VtableHeader
impl RefUnwindSafe for VtableHeader
impl Send for VtableHeader
impl Sync for VtableHeader
impl Unpin for VtableHeader
impl UnsafeUnpin for VtableHeader
impl UnwindSafe for VtableHeader
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