pub struct HotpatchRuntime { /* private fields */ }Implementations§
Source§impl HotpatchRuntime
impl HotpatchRuntime
pub fn new() -> Self
pub fn set_host_context(&self, ptr: *mut c_void)
pub fn generation(&self) -> u64
pub fn register_fallback( &self, symbol: impl Into<String>, fallback: PatchFn, ) -> Result<()>
pub fn list_symbols(&self) -> Vec<String>
pub unsafe fn call_raw( &self, symbol: &str, input: *const c_void, output: *mut c_void, ) -> Result<i32>
pub unsafe fn call_typed<I, O>( &self, symbol: &str, input: &I, output: &mut O, ) -> Result<i32>
pub fn load_module<P: AsRef<Path>>(&self, path: P) -> Result<ModuleLoadReport>
pub fn loaded_modules(&self) -> Vec<(String, u64)>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for HotpatchRuntime
impl RefUnwindSafe for HotpatchRuntime
impl Send for HotpatchRuntime
impl Sync for HotpatchRuntime
impl Unpin for HotpatchRuntime
impl UnsafeUnpin for HotpatchRuntime
impl UnwindSafe for HotpatchRuntime
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