[−][src]Trait sp_externalities::ExternalitiesExt
Extension for the Externalities
trait.
Required methods
pub fn extension<T: Any + Extension>(&mut self) -> Option<&mut T>
[src]
Tries to find a registered extension and returns a mutable reference.
pub fn register_extension<T: Extension>(&mut self, ext: T) -> Result<(), Error>
[src]
Register extension ext
.
Should return error if extension is already registered or extensions are not supported.
pub fn deregister_extension<T: Extension>(&mut self) -> Result<(), Error>
[src]
Deregister and drop extension of T
type.
Should return error if extension of type T
is not registered or
extensions are not supported.