#[non_exhaustive]pub struct RustiaHostFunctionInfo<'a> {
pub name: &'a str,
pub fuel_abi_version: u32,
pub fuel_cost: u32,
pub capability: OpCapability,
pub parameter_count: u8,
pub parameter_types: &'a [&'static str],
pub return_types: &'a [&'static str],
pub fallible: bool,
}Expand description
Public pre-install metadata for a registered host function.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'a strThe binding name inside the extension’s namespace, or a global name.
fuel_abi_version: u32ABI version used to interpret fuel_cost.
fuel_cost: u32Fuel charged per call.
capability: OpCapabilityThe callback’s declared access to host state and effects.
parameter_count: u8The number of typed Rust parameters.
parameter_types: &'a [&'static str]Rust type names for the callback parameters.
return_types: &'a [&'static str]Rust type names for the callback results.
fallible: boolWhether the callback returns a Rustia Result.
Trait Implementations§
Source§impl<'a> Clone for RustiaHostFunctionInfo<'a>
impl<'a> Clone for RustiaHostFunctionInfo<'a>
Source§fn clone(&self) -> RustiaHostFunctionInfo<'a>
fn clone(&self) -> RustiaHostFunctionInfo<'a>
Returns a duplicate 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<'a> Debug for RustiaHostFunctionInfo<'a>
impl<'a> Debug for RustiaHostFunctionInfo<'a>
Source§impl<'a> PartialEq for RustiaHostFunctionInfo<'a>
impl<'a> PartialEq for RustiaHostFunctionInfo<'a>
impl<'a> Copy for RustiaHostFunctionInfo<'a>
impl<'a> Eq for RustiaHostFunctionInfo<'a>
impl<'a> StructuralPartialEq for RustiaHostFunctionInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for RustiaHostFunctionInfo<'a>
impl<'a> RefUnwindSafe for RustiaHostFunctionInfo<'a>
impl<'a> Send for RustiaHostFunctionInfo<'a>
impl<'a> Sync for RustiaHostFunctionInfo<'a>
impl<'a> Unpin for RustiaHostFunctionInfo<'a>
impl<'a> UnsafeUnpin for RustiaHostFunctionInfo<'a>
impl<'a> UnwindSafe for RustiaHostFunctionInfo<'a>
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