Trait sp_core::traits::ExternalitiesExt
source · pub trait ExternalitiesExt {
// Required methods
fn extension<T>(&mut self) -> Option<&mut T>
where T: Any + Extension;
fn register_extension<T>(&mut self, ext: T) -> Result<(), Error>
where T: Extension;
fn deregister_extension<T>(&mut self) -> Result<(), Error>
where T: Extension;
}
Expand description
Extension for the Externalities
trait.
Required Methods§
sourcefn extension<T>(&mut self) -> Option<&mut T>
fn extension<T>(&mut self) -> Option<&mut T>
Tries to find a registered extension and returns a mutable reference.
Object Safety§
This trait is not object safe.