[−][src]Struct kpal_plugin::VTable
A table of function pointers that comprise the plugin API for the foreign function interface.
Fields
peripheral_free: extern "C" fn(_: *mut Peripheral)Frees the memory associated with a peripheral.
error_message: extern "C" fn(_: c_int) -> *const c_ucharReturns an error message associated with a Plugin error code.
attribute_name: extern "C" fn(peripheral: *const Peripheral, id: size_t, buffer: *mut c_uchar, length: size_t) -> c_intWrites the name of an attribute to a buffer that is provided by the caller.
attribute_value: extern "C" fn(peripheral: *const Peripheral, id: size_t, value: *mut Value) -> c_intWrites the value of an attribute to a Value instance that is provided by the caller.
set_attribute_value: extern "C" fn(peripheral: *mut Peripheral, id: size_t, value: *const Value) -> c_intSets the value of an attribute.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VTable
impl Send for VTable
impl Sync for VTable
impl Unpin for VTable
impl UnwindSafe for VTable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,