pub trait ExtensionPack: Sized {
// Provided methods
fn insert(self, ext: &mut Extensions) -> Option<Self>
where Self: Clone + Send + Sync + 'static { ... }
fn get(ext: &Extensions) -> Option<&Self>
where Self: Send + Sync + 'static { ... }
fn get_mut(ext: &mut Extensions) -> Option<&mut Self>
where Self: Send + Sync + 'static { ... }
fn remove(ext: &mut Extensions) -> Option<Self>
where Self: Send + Sync + 'static { ... }
}Provided Methods§
fn insert(self, ext: &mut Extensions) -> Option<Self>
fn get(ext: &Extensions) -> Option<&Self>
fn get_mut(ext: &mut Extensions) -> Option<&mut Self>
fn remove(ext: &mut Extensions) -> Option<Self>
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.