Trait ActorWithConfig

Source
pub trait ActorWithConfig {
    // Required method
    fn get_config(&self) -> &BridgeConfig;

    // Provided methods
    fn get_compatibility_params(
        &self,
    ) -> Result<CompatibilityParams, BridgeError> { ... }
    fn is_compatible(
        &self,
        others: Vec<(String, CompatibilityParams)>,
    ) -> Result<(), BridgeError> { ... }
}

Required Methods§

Provided Methods§

Source

fn get_compatibility_params(&self) -> Result<CompatibilityParams, BridgeError>

Source

fn is_compatible( &self, others: Vec<(String, CompatibilityParams)>, ) -> Result<(), BridgeError>

Returns an error with reason if not compatible, otherwise returns Ok(())

Implementors§