fedimint_client::sm::state

Trait IContext

source
pub trait IContext: Debug {
    // Required methods
    fn as_any(&self) -> &(dyn Any + Send + Sync);
    fn module_kind(&self) -> Option<ModuleKind>;
}
Expand description

Something that can be a DynContext for a state machine

General purpose code should use DynContext instead

Required Methods§

source

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

source

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

Implementors§

source§

impl<T> IContext for T
where T: Context + 'static + MaybeSend + MaybeSync,

Type-erased version of Context