pub fn register_type_size<U>(mut self, name: &str) -> Self
    where
        U: Codec + Send + Sync + 'static,
    {
        self.event_type_registry.register_type_size::<U>(name);
        self
    }
/// Register a custom type segmenter, for consuming types in events where the size cannot
/// be inferred from the metadata.
///
/// # Panics
///
/// If there is already a type size registered with this name.
Register a custom type segmenter, for consuming types in events where the size cannot
be inferred from the metadata.
Register a custom type segmenter for consuming types in events where the size cannot be inferred from the metadata .
pub fn register_type_size<U>(mut self, name: &str) -> Self
    where
        U: Codec + Send + Sync + 'static,
    {
        self.event_type_registry.register_type_size::<U>(name);
        self
    }
pub fn register_type_size < U > ( mut self , name : & str ) -> Self where U : Codec + Send + Sync + ' static , { self . event_type_registry . register_type_size :: < U > ( name ) ; self }
Register a custom type segmenter, for consuming types in events where the size cannot
be inferred from the metadata.
Register a custom type segmenter for consuming types in events where the size cannot be inferred from the metadata .
mut self
name
&str
mut self
name
&str
panics
If there is already a type size registered with this name.
If there is already a type size registered with this name .