pub struct ChainInfoQuery {
pub chain_id: Option<ChainId>,
pub test_next_block_height: Option<BlockHeight>,
pub request_committees: bool,
pub request_pending_message_bundles: bool,
pub request_received_log_excluding_first_n: Option<u64>,
pub request_manager_values: bool,
pub request_leader_timeout: Option<Vec<u8>>,
pub request_owner_balance: Option<AccountOwner>,
pub request_fallback: bool,
pub request_sent_certificate_hashes_by_heights: Option<Vec<u8>>,
pub create_network_actions: Option<bool>,
}Expand description
Request information on a chain.
Fields§
§chain_id: Option<ChainId>The chain ID
test_next_block_height: Option<BlockHeight>Optionally test that the block height is as expected
request_committees: boolQuery the current committees
request_pending_message_bundles: boolQuery the received messages that are waiting to be picked in the next block.
request_received_log_excluding_first_n: Option<u64>Query new certificate removed from the chain.
request_manager_values: boolQuery values from the chain manager, not just votes.
request_leader_timeout: Option<Vec<u8>>Request a signed vote for a leader timeout for the given height and round.
request_owner_balance: Option<AccountOwner>Query the balance of a given owner.
request_fallback: boolRequest a signed vote for fallback mode.
request_sent_certificate_hashes_by_heights: Option<Vec<u8>>Query for certificate hashes at block heights sent from the chain.
create_network_actions: Option<bool>Whether to create network actions as part of the query.
Implementations§
Source§impl ChainInfoQuery
impl ChainInfoQuery
Sourcepub fn request_received_log_excluding_first_n(&self) -> u64
pub fn request_received_log_excluding_first_n(&self) -> u64
Returns the value of request_received_log_excluding_first_n, or the default value if request_received_log_excluding_first_n is unset.
Sourcepub fn request_leader_timeout(&self) -> &[u8] ⓘ
pub fn request_leader_timeout(&self) -> &[u8] ⓘ
Returns the value of request_leader_timeout, or the default value if request_leader_timeout is unset.
Sourcepub fn request_sent_certificate_hashes_by_heights(&self) -> &[u8] ⓘ
pub fn request_sent_certificate_hashes_by_heights(&self) -> &[u8] ⓘ
Returns the value of request_sent_certificate_hashes_by_heights, or the default value if request_sent_certificate_hashes_by_heights is unset.
Sourcepub fn create_network_actions(&self) -> bool
pub fn create_network_actions(&self) -> bool
Returns the value of create_network_actions, or the default value if create_network_actions is unset.
Trait Implementations§
Source§impl Clone for ChainInfoQuery
impl Clone for ChainInfoQuery
Source§fn clone(&self) -> ChainInfoQuery
fn clone(&self) -> ChainInfoQuery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChainInfoQuery
impl Debug for ChainInfoQuery
Source§impl Default for ChainInfoQuery
impl Default for ChainInfoQuery
impl Eq for ChainInfoQuery
Source§impl Hash for ChainInfoQuery
impl Hash for ChainInfoQuery
Source§impl Message for ChainInfoQuery
impl Message for ChainInfoQuery
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ChainInfoQuery
impl PartialEq for ChainInfoQuery
Source§fn eq(&self, other: &ChainInfoQuery) -> bool
fn eq(&self, other: &ChainInfoQuery) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChainInfoQuery
Source§impl TryFrom<ChainInfoQuery> for ChainInfoQuery
impl TryFrom<ChainInfoQuery> for ChainInfoQuery
Source§type Error = GrpcProtoConversionError
type Error = GrpcProtoConversionError
Source§impl TryFrom<ChainInfoQuery> for ChainInfoQuery
impl TryFrom<ChainInfoQuery> for ChainInfoQuery
Source§type Error = GrpcProtoConversionError
type Error = GrpcProtoConversionError
Auto Trait Implementations§
impl Freeze for ChainInfoQuery
impl RefUnwindSafe for ChainInfoQuery
impl Send for ChainInfoQuery
impl Sync for ChainInfoQuery
impl Unpin for ChainInfoQuery
impl UnsafeUnpin for ChainInfoQuery
impl UnwindSafe for ChainInfoQuery
Blanket Implementations§
impl<_INNER> AutoTraits for _INNER
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<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Requestimpl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSync for Twhere
T: Sync,
impl<T> Post for Twhere
T: Send + 'static,
Source§impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
Source§fn read<'instance>(
&self,
instance: &'instance &mut I,
location: GuestPointer,
length: u32,
) -> Result<Cow<'instance, [u8]>, RuntimeError>
fn read<'instance>( &self, instance: &'instance &mut I, location: GuestPointer, length: u32, ) -> Result<Cow<'instance, [u8]>, RuntimeError>
Reads length bytes from memory from the provided location.
Source§fn write(
&mut self,
instance: &mut &mut I,
location: GuestPointer,
bytes: &[u8],
) -> Result<(), RuntimeError>
fn write( &mut self, instance: &mut &mut I, location: GuestPointer, bytes: &[u8], ) -> Result<(), RuntimeError>
Writes the bytes to memory at the provided location.