Struct chain_network::grpc::proto::watch::SyncMultiverseRequest
source · pub struct SyncMultiverseRequest {
pub from: Vec<Vec<u8>>,
}
Fields§
§from: Vec<Vec<u8>>
Block IDs to start synchronization from.
The client should examine previously synchronized blockchain storage, and include the ID of the latest block at or earlier than the stability depth in that saved state, as well as tips of all valid branches existing in that state.
The server should prune the block IDs in the list, discarding any block IDs not found in the blockchain storage (which might be on discarded branches), as well as any blocks that are ancestors of other blocks identified in the list. The server responds with a stream sending any valid blocks on the (possibly forked) chain that are descendants of the remaining blocks in the list, unless the list is empty, in which case the server sends all blocks starting from genesis. The stream should uphold the parent-to-child order of the blocks, i.e. no block gets sent before its parent.
Trait Implementations§
source§impl Clone for SyncMultiverseRequest
impl Clone for SyncMultiverseRequest
source§fn clone(&self) -> SyncMultiverseRequest
fn clone(&self) -> SyncMultiverseRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SyncMultiverseRequest
impl Debug for SyncMultiverseRequest
source§impl Default for SyncMultiverseRequest
impl Default for SyncMultiverseRequest
source§impl Message for SyncMultiverseRequest
impl Message for SyncMultiverseRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
.source§impl PartialEq<SyncMultiverseRequest> for SyncMultiverseRequest
impl PartialEq<SyncMultiverseRequest> for SyncMultiverseRequest
source§fn eq(&self, other: &SyncMultiverseRequest) -> bool
fn eq(&self, other: &SyncMultiverseRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SyncMultiverseRequest
Auto Trait Implementations§
impl RefUnwindSafe for SyncMultiverseRequest
impl Send for SyncMultiverseRequest
impl Sync for SyncMultiverseRequest
impl Unpin for SyncMultiverseRequest
impl UnwindSafe for SyncMultiverseRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§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