pub struct BootstrapResponse {
pub protocol: ProtocolVersion,
pub snapshot_id: SnapshotId,
pub cursor: Cursor,
pub offset: u64,
pub entities: Vec<SnapshotEntity>,
pub next_offset: u64,
pub has_more: bool,
pub server_time: HybridTimestamp,
}Expand description
One resumable page from a consistent bootstrap snapshot.
Fields§
§protocol: ProtocolVersionServer wire protocol version.
snapshot_id: SnapshotIdStable snapshot identity shared by every page.
cursor: CursorCursor at the logical snapshot boundary.
offset: u64Offset represented by the first entity in this page.
entities: Vec<SnapshotEntity>Bounded page of authoritative entity state.
next_offset: u64Offset to request next.
has_more: boolTrue when another page remains.
server_time: HybridTimestampServer timestamp for causal observation.
Trait Implementations§
Source§impl Clone for BootstrapResponse
impl Clone for BootstrapResponse
Source§fn clone(&self) -> BootstrapResponse
fn clone(&self) -> BootstrapResponse
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 BootstrapResponse
impl Debug for BootstrapResponse
Source§impl<'de> Deserialize<'de> for BootstrapResponse
impl<'de> Deserialize<'de> for BootstrapResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BootstrapResponse
Source§impl PartialEq for BootstrapResponse
impl PartialEq for BootstrapResponse
Source§impl Serialize for BootstrapResponse
impl Serialize for BootstrapResponse
impl StructuralPartialEq for BootstrapResponse
Auto Trait Implementations§
impl Freeze for BootstrapResponse
impl RefUnwindSafe for BootstrapResponse
impl Send for BootstrapResponse
impl Sync for BootstrapResponse
impl Unpin for BootstrapResponse
impl UnsafeUnpin for BootstrapResponse
impl UnwindSafe for BootstrapResponse
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
Mutably borrows from an owned value. Read more