#[repr(C)]pub struct AtomVMPortDriver {
pub name: *const c_char,
pub init: Option<PortInitFn>,
pub destroy: Option<PortDestroyFn>,
pub create_port: extern "C" fn(*const GlobalContext, ERL_NIF_TERM) -> *mut Context,
pub message_handler: extern "C" fn(*mut Context, *const Message) -> PortResult,
}Expand description
Port driver registration structure
Fields§
§name: *const c_char§init: Option<PortInitFn>§destroy: Option<PortDestroyFn>§create_port: extern "C" fn(*const GlobalContext, ERL_NIF_TERM) -> *mut Context§message_handler: extern "C" fn(*mut Context, *const Message) -> PortResultTrait Implementations§
impl Sync for AtomVMPortDriver
Auto Trait Implementations§
impl Freeze for AtomVMPortDriver
impl RefUnwindSafe for AtomVMPortDriver
impl !Send for AtomVMPortDriver
impl Unpin for AtomVMPortDriver
impl UnwindSafe for AtomVMPortDriver
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