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_sent_certificate_hashes_in_range: Option<Vec<u8>>,
pub request_received_log_excluding_first_n: Option<u64>,
pub request_manager_values: bool,
pub request_leader_timeout: bool,
pub request_owner_balance: Option<Owner>,
pub request_fallback: 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: bool
Query the current committees
request_pending_message_bundles: bool
Query the received messages that are waiting be picked in the next block.
request_sent_certificate_hashes_in_range: Option<Vec<u8>>
Query a range of certificates hashes sent from the chain.
request_received_log_excluding_first_n: Option<u64>
Query new certificate removed from the chain.
request_manager_values: bool
Query values from the chain manager, not just votes.
request_leader_timeout: bool
Request a signed vote for a leader timeout.
request_owner_balance: Option<Owner>
Query the balance of a given owner.
request_fallback: bool
Request a signed vote for fallback mode.
Implementations§
Source§impl ChainInfoQuery
impl ChainInfoQuery
Sourcepub fn request_sent_certificate_hashes_in_range(&self) -> &[u8] ⓘ
pub fn request_sent_certificate_hashes_in_range(&self) -> &[u8] ⓘ
Returns the value of request_sent_certificate_hashes_in_range
, or the default value if request_sent_certificate_hashes_in_range
is unset.
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.
Trait Implementations§
Source§impl Clone for ChainInfoQuery
impl Clone for ChainInfoQuery
Source§fn clone(&self) -> ChainInfoQuery
fn clone(&self) -> ChainInfoQuery
1.0.0 · 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
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§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
impl StructuralPartialEq for ChainInfoQuery
Auto Trait Implementations§
impl Freeze for ChainInfoQuery
impl RefUnwindSafe for ChainInfoQuery
impl Send for ChainInfoQuery
impl Sync for ChainInfoQuery
impl Unpin for ChainInfoQuery
impl UnwindSafe for ChainInfoQuery
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
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::Request
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
.