Type Alias fedimint_core::module::registry::ModuleDecoderRegistry

source ·
pub type ModuleDecoderRegistry = ModuleRegistry<Decoder, DecodingMode>;
Expand description

Collection of decoders belonging to modules, typically obtained from a ModuleRegistry

Aliased Type§

struct ModuleDecoderRegistry {
    inner: BTreeMap<u16, (ModuleKind, Decoder)>,
    state: DecodingMode,
}

Fields§

§inner: BTreeMap<u16, (ModuleKind, Decoder)>§state: DecodingMode

Implementations§

source§

impl ModuleDecoderRegistry

source

pub fn with_fallback(self) -> Self

source

pub fn decoding_mode(&self) -> DecodingMode

source

pub fn assert_reject_mode(&self)

Panic if the Self::decoding_mode is not Reject