Enum soroban_env_guest::xdr::next::HostFunction
pub enum HostFunction {
InvokeContract(ScVec),
CreateContract(CreateContractArgs),
InstallContractCode(InstallContractCodeArgs),
}
Variants§
InvokeContract(ScVec)
CreateContract(CreateContractArgs)
InstallContractCode(InstallContractCodeArgs)
Implementations§
§impl HostFunction
impl HostFunction
pub const VARIANTS: [HostFunctionType; 3] = [HostFunctionType::InvokeContract, HostFunctionType::CreateContract, HostFunctionType::InstallContractCode]
pub const VARIANTS_STR: [&'static str; 3] = ["InvokeContract", "CreateContract", "InstallContractCode"]
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> HostFunctionType
pub const fn variants() -> [HostFunctionType; 3]
Trait Implementations§
§impl Clone for HostFunction
impl Clone for HostFunction
§fn clone(&self) -> HostFunction
fn clone(&self) -> HostFunction
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 more§impl Debug for HostFunction
impl Debug for HostFunction
§impl Discriminant<HostFunctionType> for HostFunction
impl Discriminant<HostFunctionType> for HostFunction
fn discriminant(&self) -> HostFunctionType
§impl Hash for HostFunction
impl Hash for HostFunction
§impl Ord for HostFunction
impl Ord for HostFunction
§impl PartialEq<HostFunction> for HostFunction
impl PartialEq<HostFunction> for HostFunction
§fn eq(&self, other: &HostFunction) -> bool
fn eq(&self, other: &HostFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<HostFunction> for HostFunction
impl PartialOrd<HostFunction> for HostFunction
§fn partial_cmp(&self, other: &HostFunction) -> Option<Ordering>
fn partial_cmp(&self, other: &HostFunction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more