pub struct FollowHello {
pub key_id: String,
pub seq: u64,
pub hash: Vec<u8>,
pub protocol: u32,
pub backup: bool,
pub rewind_points: Vec<RecordPoint>,
pub witness_generation: Option<WitnessGeneration>,
pub reader: bool,
pub copy: String,
pub image: bool,
}Expand description
Where the standby’s record log stands; seq 0 with the zero hash for an empty standby.
Fields§
§key_id: String§seq: u64§hash: Vec<u8>§protocol: u32§backup: boolA backup follower (kernable backup), not a standby: its key needs backup for *
and the kernel --backup on. It never counts for --replication sync, gets the vault
values sealed (VaultRow.sealed) as an export does, and one follows at a time. Its acks only
keep the records it still needs. Seq 0 asks for a full image.
rewind_points: Vec<RecordPoint>The records the standby could go back to, newest first after its head (seq, hash): the record before each of its newest writes it can take back (design/rewind.md). A primary that holds one of them answers REWIND to the newest it holds instead of DIVERGED.
witness_generation: Option<WitnessGeneration>A kernel of a pair: the newest witness generation it has seen (absent: none), so the primary learns it too.
reader: boolA reader (a read-only copy, kernable start --reader), not a standby: its key needs
read for * (replicate is the standby’s; neither key follows in the other’s role) and
the kernel --readers on. Any number follow at once; none counts
for --replication sync and none is ever promoted. It gets only records the kernel may tell
(with a standby, those the standby holds), and, while nothing new comes, a RecordBatch
without records every second whose head says how far it may follow.
copy: StringA reader of a relay: the copy it follows there. A kernel ignores it.
image: boolA full image, whatever seq says (a reader only): a pusher takes one to compact its copy at the relay, which asked for it (PushResponse.compact).
Trait Implementations§
Source§impl Clone for FollowHello
impl Clone for FollowHello
Source§impl Debug for FollowHello
impl Debug for FollowHello
Source§impl Default for FollowHello
impl Default for FollowHello
Source§impl Message for FollowHello
impl Message for FollowHello
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 FollowHello
impl PartialEq for FollowHello
impl StructuralPartialEq for FollowHello
Auto Trait Implementations§
impl Forget for FollowHello
impl Freeze for FollowHello
impl Move for FollowHello
impl RefUnwindSafe for FollowHello
impl Send for FollowHellowhere
RawVecInner: Send,
impl Sync for FollowHellowhere
RawVecInner: Sync,
impl Unpin for FollowHello
impl UnsafeUnpin for FollowHellowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RecordPoint>: UnsafeUnpin,
impl UnwindSafe for FollowHellowhere
RawVecInner: UnwindSafe,
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§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> 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