pub trait ConnectorWithContext {
type Context: ConnectorContext + Hash + Sync + Send + Serialize + Clone + Debug;
// Required method
fn context() -> Self::Context;
// Provided method
fn hash() -> String { ... }
}
Expand description
Defines an intermediary that allows us to conveniently log ReasonerConnector
’s context.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.