pub trait ConnectionState {
// Required method
fn shared_state(&self) -> &SharedStateRef;
// Provided method
fn maybe_conn_err<E: Into<Error>>(&self, err: E) -> Error { ... }
}
Required Methods§
Provided Methods§
fn maybe_conn_err<E: Into<Error>>(&self, err: E) -> Error
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.