pub trait ApplicableTo<Projection, Metadata>: VecU8Message + Send + Sync + Debug {
    // Required methods
    fn apply_to(
        self,
        metadata: Metadata,
        projection: &mut Projection
    ) -> Result<(), Error>;
    fn box_clone(&self) -> Box<dyn ApplicableTo<Projection, Metadata>>;
}
Expand description

Describes a Message that is applicable to a particular projection type.

Required Methods§

source

fn apply_to( self, metadata: Metadata, projection: &mut Projection ) -> Result<(), Error>

Applies this message to the given projection.

source

fn box_clone(&self) -> Box<dyn ApplicableTo<Projection, Metadata>>

Creates a box with a clone of this message.

Implementors§