fedimint_core::module::registry

Type Alias 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