#[repr(C)]pub struct ExecutorchPalImpl {
pub init: Option<unsafe extern "C" fn()>,
pub abort: Option<unsafe extern "C" fn()>,
pub current_ticks: Option<unsafe extern "C" fn() -> executorch_timestamp_t>,
pub ticks_to_ns_multiplier: Option<unsafe extern "C" fn() -> executorch_tick_ratio>,
pub emit_log_message: Option<unsafe extern "C" fn(timestamp: executorch_timestamp_t, level: executorch_pal_log_level, filename: *const c_char, function: *const c_char, line: usize, message: *const c_char, length: usize)>,
pub allocate: Option<unsafe extern "C" fn(size: usize) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(ptr: *mut c_void)>,
pub source_filename: *const c_char,
}Fields§
§init: Option<unsafe extern "C" fn()>§abort: Option<unsafe extern "C" fn()>§current_ticks: Option<unsafe extern "C" fn() -> executorch_timestamp_t>§ticks_to_ns_multiplier: Option<unsafe extern "C" fn() -> executorch_tick_ratio>§emit_log_message: Option<unsafe extern "C" fn(timestamp: executorch_timestamp_t, level: executorch_pal_log_level, filename: *const c_char, function: *const c_char, line: usize, message: *const c_char, length: usize)>§allocate: Option<unsafe extern "C" fn(size: usize) -> *mut c_void>§free: Option<unsafe extern "C" fn(ptr: *mut c_void)>§source_filename: *const c_charTrait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutorchPalImpl
impl RefUnwindSafe for ExecutorchPalImpl
impl !Send for ExecutorchPalImpl
impl !Sync for ExecutorchPalImpl
impl Unpin for ExecutorchPalImpl
impl UnwindSafe for ExecutorchPalImpl
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