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