Struct sp_core::offchain::OffchainExt [−][src]
pub struct OffchainExt(pub Box<dyn Externalities>);
The offchain extension that will be registered at the Substrate externalities.
Implementations
impl OffchainExt
[src]
impl OffchainExt
[src]pub fn new<O: Externalities + 'static>(offchain: O) -> Self
[src]
Create a new instance of Self
.
Methods from Deref<Target = Box<dyn Externalities>>
Trait Implementations
impl Deref for OffchainExt
[src]
impl Deref for OffchainExt
[src]impl Extension for OffchainExt
[src]
impl Extension for OffchainExt
[src]fn as_mut_any(&mut self) -> &mut dyn Any
[src]
impl From<Box<dyn Externalities + 'static, Global>> for OffchainExt
[src]
impl From<Box<dyn Externalities + 'static, Global>> for OffchainExt
[src]fn from(inner: Box<dyn Externalities>) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for OffchainExt
impl Send for OffchainExt
impl !Sync for OffchainExt
impl Unpin for OffchainExt
impl !UnwindSafe for OffchainExt
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]