#[repr(C)]pub struct PrismPluginInstanceContext {
pub struct_size: u32,
pub reserved: u32,
pub services: *const PrismPluginServices,
pub userdata: *mut c_void,
}Expand description
The structure Prism passes as the userdata argument to the create member of a backend supplied by a plugin. The context is valid only for the duration of the create call; the services object it names is valid for the longer period given under Host services.
Fields§
§struct_size: u32The size of this structure as Prism understands it. A backend MUST consult at most this many bytes and MUST treat any member beyond it as absent.
reserved: u32Reserved for future use. Prism sets this member to zero, and a backend MUST ignore it.
services: *const PrismPluginServicesThe backend’s services object. A backend MAY retain it for the period given under Host services. This member is never NULL.
userdata: *mut c_voidThe value of the userdata member of the descriptor from which the backend was registered.
Trait Implementations§
Auto Trait Implementations§
impl !Send for PrismPluginInstanceContext
impl !Sync for PrismPluginInstanceContext
impl Freeze for PrismPluginInstanceContext
impl RefUnwindSafe for PrismPluginInstanceContext
impl Unpin for PrismPluginInstanceContext
impl UnsafeUnpin for PrismPluginInstanceContext
impl UnwindSafe for PrismPluginInstanceContext
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