pub trait Resource {
const TYPE: &'static str;
// Required method
fn life_guard(&self) -> &LifeGuard;
// Provided method
fn label(&self) -> &str { ... }
}
Required Associated Constants§
Required Methods§
fn life_guard(&self) -> &LifeGuard
Provided Methods§
Object Safety§
This trait is not object safe.