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