#[repr(C)]pub struct PatchModuleV1 {
pub abi_magic: u32,
pub abi_version: u16,
pub struct_size: u16,
pub module_version: u64,
pub name: *const c_char,
pub entry_count: u32,
pub reserved: u32,
pub entries: *const PatchEntryV1,
pub on_load: Option<LifecycleFn>,
pub on_unload: Option<LifecycleFn>,
}Fields§
§abi_magic: u32§abi_version: u16§struct_size: u16§module_version: u64§name: *const c_char§entry_count: u32§reserved: u32§entries: *const PatchEntryV1§on_load: Option<LifecycleFn>§on_unload: Option<LifecycleFn>Implementations§
Source§impl PatchModuleV1
impl PatchModuleV1
pub fn validate_header(&self) -> Result<()>
pub unsafe fn module_name(&self) -> Result<&str>
pub unsafe fn entries_slice(&self) -> &[PatchEntryV1]
Trait Implementations§
Source§impl Clone for PatchModuleV1
impl Clone for PatchModuleV1
Source§fn clone(&self) -> PatchModuleV1
fn clone(&self) -> PatchModuleV1
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 PatchModuleV1
impl Sync for PatchModuleV1
Auto Trait Implementations§
impl Freeze for PatchModuleV1
impl RefUnwindSafe for PatchModuleV1
impl !Send for PatchModuleV1
impl Unpin for PatchModuleV1
impl UnsafeUnpin for PatchModuleV1
impl UnwindSafe for PatchModuleV1
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