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§
fn get_config(&self) -> &BridgeConfig
Provided Methods§
fn get_compatibility_params(&self) -> Result<CompatibilityParams, BridgeError>
Sourcefn is_compatible(
&self,
others: Vec<(String, CompatibilityParams)>,
) -> Result<(), BridgeError>
fn is_compatible( &self, others: Vec<(String, CompatibilityParams)>, ) -> Result<(), BridgeError>
Returns an error with reason if not compatible, otherwise returns Ok(())