pub struct CoreVersionRef<'a> {
pub spec_name: &'a str,
pub impl_name: &'a str,
pub authoring_version: u32,
pub spec_version: u32,
pub impl_version: u32,
pub apis: CoreVersionApisRefIter<'a>,
pub transaction_version: Option<u32>,
pub state_version: Option<TrieEntryVersion>,
}Expand description
Runtime specification, once decoded.
Fields§
§spec_name: &'a str§impl_name: &'a str§spec_version: u32§impl_version: u32§apis: CoreVersionApisRefIter<'a>List of “API“s that the runtime supports.
Each API corresponds to a certain list of runtime entry points.
This field can thus be used in order to determine which runtime entry points are available.
transaction_version: Option<u32>Arbitrary version number corresponding to the transactions encoding version.
Whenever this version number changes, all transactions encoding generated earlier are invalidated and should be regenerated.
Older versions of Substrate didn’t provide this field. None if the field is missing.
state_version: Option<TrieEntryVersion>Version number of the state trie encoding version.
Version 0 corresponds to a different trie encoding than version 1.
This field has been added to Substrate on 24th December 2021. Older versions of Substrate
didn’t provide this field, in which case it will contain None.
None should be interpreted the same way as Some(0).
Implementations§
Source§impl CoreVersionRef<'_>
impl CoreVersionRef<'_>
Sourcepub fn scale_encoding_vec(&self) -> Vec<u8> ⓘ
pub fn scale_encoding_vec(&self) -> Vec<u8> ⓘ
Returns the SCALE encoding of this data structure.
Trait Implementations§
Source§impl<'a> Clone for CoreVersionRef<'a>
impl<'a> Clone for CoreVersionRef<'a>
Source§fn clone(&self) -> CoreVersionRef<'a>
fn clone(&self) -> CoreVersionRef<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for CoreVersionRef<'a>
impl<'a> Debug for CoreVersionRef<'a>
Source§impl<'a> PartialEq for CoreVersionRef<'a>
impl<'a> PartialEq for CoreVersionRef<'a>
impl<'a> Eq for CoreVersionRef<'a>
impl<'a> StructuralPartialEq for CoreVersionRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for CoreVersionRef<'a>
impl<'a> RefUnwindSafe for CoreVersionRef<'a>
impl<'a> Send for CoreVersionRef<'a>
impl<'a> Sync for CoreVersionRef<'a>
impl<'a> Unpin for CoreVersionRef<'a>
impl<'a> UnsafeUnpin for CoreVersionRef<'a>
impl<'a> UnwindSafe for CoreVersionRef<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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 more