fedimint_core::core

Trait IntoDynInstance

Source
pub trait IntoDynInstance {
    type DynType: 'static;

    // Required method
    fn into_dyn(self, instance_id: ModuleInstanceId) -> Self::DynType;
}
Expand description

A type that has a Dyn*, type erased version of itself

Required Associated Types§

Source

type DynType: 'static

The type erased version of the type implementing this trait

Required Methods§

Source

fn into_dyn(self, instance_id: ModuleInstanceId) -> Self::DynType

Convert self into its type-erased equivalent

Implementors§

impl<I> IntoDynInstance for ClientInput<I>
where I: IntoDynInstance<DynType = DynInput> + 'static,

impl<I> IntoDynInstance for ClientOutput<I>
where I: IntoDynInstance<DynType = DynOutput> + 'static,

impl<I, S> IntoDynInstance for ClientInputBundle<I, S>
where I: IntoDynInstance<DynType = DynInput> + 'static, S: IntoDynInstance<DynType = DynState> + 'static,

impl<I, S> IntoDynInstance for ClientOutputBundle<I, S>
where I: IntoDynInstance<DynType = DynOutput> + 'static, S: IntoDynInstance<DynType = DynState> + 'static,

impl<S> IntoDynInstance for OperationState<S>
where S: State,

impl<S> IntoDynInstance for ClientInputSM<S>
where S: IntoDynInstance<DynType = DynState> + 'static,

impl<S> IntoDynInstance for ClientOutputSM<S>
where S: IntoDynInstance<DynType = DynState> + 'static,