pub struct LightBlockMeta {
pub signed_header: Option<SignedHeader>,
pub validators: Set,
}Expand description
Tendermint light consensus block metadata.
Fields§
§signed_header: Option<SignedHeader>§validators: SetImplementations§
Source§impl LightBlockMeta
impl LightBlockMeta
Sourcepub fn get_state_root(&self) -> Root
pub fn get_state_root(&self) -> Root
State root specified by this light block.
§Panics
The signed header must be present and the application hash must be a valid Oasis Core application hash (state root hash).
Trait Implementations§
Source§impl Clone for LightBlockMeta
impl Clone for LightBlockMeta
Source§fn clone(&self) -> LightBlockMeta
fn clone(&self) -> LightBlockMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LightBlockMeta
impl Debug for LightBlockMeta
Source§impl From<LightBlockMeta> for LightBlock
impl From<LightBlockMeta> for LightBlock
Source§fn from(value: LightBlockMeta) -> Self
fn from(value: LightBlockMeta) -> Self
Converts to this type from the input type.
Source§impl Protobuf<LightBlock> for LightBlockMeta
impl Protobuf<LightBlock> for LightBlockMeta
§fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
fn encode<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
Encode into a buffer in Protobuf format. Read more
§fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
fn encode_length_delimited<B>(self, buf: &mut B) -> Result<(), Error>where
B: BufMut,
Encode with a length-delimiter to a buffer in Protobuf format. Read more
§fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Constructor that attempts to decode an instance from a buffer. Read more
§fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Constructor that attempts to decode a length-delimited instance from
the buffer. Read more
§fn encoded_len(self) -> usize
fn encoded_len(self) -> usize
Returns the encoded length of the message without a length delimiter. Read more
§fn encode_vec(self) -> Vec<u8> ⓘ
fn encode_vec(self) -> Vec<u8> ⓘ
Encodes into a Protobuf-encoded
Vec<u8>.§fn decode_vec(v: &[u8]) -> Result<Self, Error>
fn decode_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance from a
Vec<u8> (or equivalent).§fn encode_length_delimited_vec(self) -> Vec<u8> ⓘ
fn encode_length_delimited_vec(self) -> Vec<u8> ⓘ
Encode with a length-delimiter to a
Vec<u8> Protobuf-encoded message.§fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>
fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>
Constructor that attempts to decode a Protobuf-encoded instance with a
length-delimiter from a
Vec<u8> or equivalent.Auto Trait Implementations§
impl Freeze for LightBlockMeta
impl RefUnwindSafe for LightBlockMeta
impl Send for LightBlockMeta
impl Sync for LightBlockMeta
impl Unpin for LightBlockMeta
impl UnsafeUnpin for LightBlockMeta
impl UnwindSafe for LightBlockMeta
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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