fedimint_core::core

Trait IInput

source
pub trait IInput:
    Debug
    + Display
    + DynEncodable {
    // Required methods
    fn as_any(&self) -> &(dyn Any + Send + Sync);
    fn module_kind(&self) -> Option<ModuleKind>;
    fn clone(&self, instance_id: ModuleInstanceId) -> DynInput;
    fn dyn_hash(&self) -> u64;
    fn erased_eq_no_instance_id(&self, other: &DynInput) -> bool;
}
Expand description

Something that can be an DynInput in a Transaction

General purpose code should use DynInput instead

Required Methods§

source

fn as_any(&self) -> &(dyn Any + Send + Sync)

source

fn module_kind(&self) -> Option<ModuleKind>

source

fn clone(&self, instance_id: ModuleInstanceId) -> DynInput

source

fn dyn_hash(&self) -> u64

source

fn erased_eq_no_instance_id(&self, other: &DynInput) -> bool

Implementors§

source§

impl IInput for DynUnknown

source§

impl<T> IInput for T
where T: Input + DynEncodable + 'static + Send + Sync,