pub trait MongoCollection {
const COLLECTION: &'static str;
// Provided method
fn mongo_collection<T>(db: &Database) -> Collection<T>
where T: Send + Sync { ... }
}Required Associated Constants§
const COLLECTION: &'static str
Provided Methods§
fn mongo_collection<T>(db: &Database) -> Collection<T>
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.