pub struct CapabilityIdent {
pub pkg_name: String,
pub pkg_version: String,
pub state_tn: Ident,
pub client_tn: Ident,
pub config_tn: Option<Ident>,
}Expand description
Identity of the capability (State, Client, Error)
Fields§
§pkg_name: String§pkg_version: String§state_tn: IdentThe struct being implemented (e.g., “MyStruct”)
client_tn: IdentThe client type identifier (e.g., “MyClient”)
config_tn: Option<Ident>The config type identifier (e.g., “MyConfig”)
Implementations§
Source§impl CapabilityIdent
impl CapabilityIdent
Sourcepub fn cap_id(&self) -> String
pub fn cap_id(&self) -> String
Library identifier for a method (e.g., __my_trait__my_state__method_name)
Sourcepub fn trace_name(&self, name: &FnName) -> Ident
pub fn trace_name(&self, name: &FnName) -> Ident
Library identifier for a method (e.g., __my_trait__my_state__method_name)
Sourcepub fn class_name(&self) -> String
pub fn class_name(&self) -> String
Library identifier for a method (e.g., __my_trait__my_state__method_name)
Sourcepub fn class_name_static(&self) -> Ident
pub fn class_name_static(&self) -> Ident
Library identifier for a method (e.g., __my_trait__my_state__method_name)
Sourcepub fn trace_name_static(&self, name: &FnName) -> Ident
pub fn trace_name_static(&self, name: &FnName) -> Ident
Library identifier for a method (e.g., __my_trait__my_state__method_name)
Sourcepub fn ffi_name(&self, name: &FnName) -> Ident
pub fn ffi_name(&self, name: &FnName) -> Ident
FFI function name for a method (e.g., __my_trait__my_state__name__ffi)
Sourcepub fn wasm_name(&self, name: &FnName) -> Ident
pub fn wasm_name(&self, name: &FnName) -> Ident
WASM import name for a method (e.g., __my_trait__my_state__name__wasm)
Sourcepub fn input_struct(&self, name: &FnName) -> Ident
pub fn input_struct(&self, name: &FnName) -> Ident
Input struct name for a method with multiple parameters
Trait Implementations§
Source§impl Clone for CapabilityIdent
impl Clone for CapabilityIdent
Source§fn clone(&self) -> CapabilityIdent
fn clone(&self) -> CapabilityIdent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CapabilityIdent
impl Debug for CapabilityIdent
impl Eq for CapabilityIdent
Source§impl Hash for CapabilityIdent
impl Hash for CapabilityIdent
Source§impl PartialEq for CapabilityIdent
impl PartialEq for CapabilityIdent
Source§fn eq(&self, other: &CapabilityIdent) -> bool
fn eq(&self, other: &CapabilityIdent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CapabilityIdent
Auto Trait Implementations§
impl !Send for CapabilityIdent
impl !Sync for CapabilityIdent
impl Freeze for CapabilityIdent
impl RefUnwindSafe for CapabilityIdent
impl Unpin for CapabilityIdent
impl UnsafeUnpin for CapabilityIdent
impl UnwindSafe for CapabilityIdent
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