Struct extism_runtime::UserData
source · pub struct UserData { /* private fields */ }
Implementations§
source§impl UserData
impl UserData
pub fn new_pointer( ptr: *mut c_void, free: Option<extern "C" fn(_: *mut c_void)> ) -> Self
pub fn new<T: Any>(x: T) -> Self
pub fn is_null(&self) -> bool
pub fn as_ptr(&self) -> *mut c_void
pub fn any(&self) -> Option<&dyn Any>
pub fn any_mut(&mut self) -> Option<&mut dyn Any>
Trait Implementations§
impl Send for UserData
impl Sync for UserData
Auto Trait Implementations§
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
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike,
Query the “status” flags for the
self
file descriptor.