Struct sp_trie::proof_size_extension::ProofSizeExt
source · pub struct ProofSizeExt(pub Box<dyn ProofSizeProvider + Sync + Send + 'static>);
Expand description
The proof size extension to fetch the current storage proof size in externalities.
Tuple Fields§
§0: Box<dyn ProofSizeProvider + Sync + Send + 'static>
Implementations§
source§impl ProofSizeExt
impl ProofSizeExt
sourcepub fn new<T: ProofSizeProvider + Sync + Send + 'static>(recorder: T) -> Self
pub fn new<T: ProofSizeProvider + Sync + Send + 'static>(recorder: T) -> Self
Creates a new instance of ProofSizeExt
.
sourcepub fn storage_proof_size(&self) -> u64
pub fn storage_proof_size(&self) -> u64
Returns the storage proof size.
Trait Implementations§
source§impl DerefMut for ProofSizeExt
impl DerefMut for ProofSizeExt
source§impl Extension for ProofSizeExt
impl Extension for ProofSizeExt
source§impl From<Box<dyn ProofSizeProvider + Send + Sync>> for ProofSizeExt
impl From<Box<dyn ProofSizeProvider + Send + Sync>> for ProofSizeExt
Auto Trait Implementations§
impl Freeze for ProofSizeExt
impl !RefUnwindSafe for ProofSizeExt
impl Send for ProofSizeExt
impl Sync for ProofSizeExt
impl Unpin for ProofSizeExt
impl !UnwindSafe for ProofSizeExt
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.