Struct uniffi_bindgen::interface::ffi::FfiCallbackFunction
source · pub struct FfiCallbackFunction {
pub(super) name: String,
pub(super) arguments: Vec<FfiArgument>,
pub(super) return_type: Option<FfiType>,
pub(super) has_rust_call_status_arg: bool,
}
Expand description
Represents an “extern C”-style callback function
These are defined in the foreign code and passed to Rust as a function pointer.
Fields§
§name: String
§arguments: Vec<FfiArgument>
§return_type: Option<FfiType>
§has_rust_call_status_arg: bool
Implementations§
source§impl FfiCallbackFunction
impl FfiCallbackFunction
pub fn name(&self) -> &str
pub fn arguments(&self) -> Vec<&FfiArgument>
pub fn return_type(&self) -> Option<&FfiType>
pub fn has_rust_call_status_arg(&self) -> bool
Trait Implementations§
source§impl Clone for FfiCallbackFunction
impl Clone for FfiCallbackFunction
source§fn clone(&self) -> FfiCallbackFunction
fn clone(&self) -> FfiCallbackFunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FfiCallbackFunction
impl Debug for FfiCallbackFunction
source§impl Default for FfiCallbackFunction
impl Default for FfiCallbackFunction
source§fn default() -> FfiCallbackFunction
fn default() -> FfiCallbackFunction
Returns the “default value” for a type. Read more
source§impl From<FfiCallbackFunction> for FfiDefinition
impl From<FfiCallbackFunction> for FfiDefinition
source§fn from(value: FfiCallbackFunction) -> FfiDefinition
fn from(value: FfiCallbackFunction) -> FfiDefinition
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FfiCallbackFunction
impl Send for FfiCallbackFunction
impl Sync for FfiCallbackFunction
impl Unpin for FfiCallbackFunction
impl UnwindSafe for FfiCallbackFunction
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