pub struct WalStreamChunk {
pub version: u32,
pub records: Vec<WalStreamRecord>,
pub current_lsn: u64,
pub oldest_available_lsn: Option<u64>,
pub partial_resync: bool,
pub partial_resync_count: u64,
pub needs_rebootstrap: bool,
pub invalidation_reason: Option<String>,
pub catchup: Option<WalCatchup>,
pub primary_endpoints: HashMap<String, String>,
}Fields§
§version: u32§records: Vec<WalStreamRecord>§current_lsn: u64§oldest_available_lsn: Option<u64>§partial_resync: bool§partial_resync_count: u64§needs_rebootstrap: bool§invalidation_reason: Option<String>§catchup: Option<WalCatchup>§primary_endpoints: HashMap<String, String>Implementations§
Source§impl WalStreamChunk
impl WalStreamChunk
Sourcepub fn oldest_available_lsn(&self) -> u64
pub fn oldest_available_lsn(&self) -> u64
Returns the value of oldest_available_lsn, or the default value if oldest_available_lsn is unset.
Sourcepub fn invalidation_reason(&self) -> &str
pub fn invalidation_reason(&self) -> &str
Returns the value of invalidation_reason, or the default value if invalidation_reason is unset.
Trait Implementations§
Source§impl Clone for WalStreamChunk
impl Clone for WalStreamChunk
Source§fn clone(&self) -> WalStreamChunk
fn clone(&self) -> WalStreamChunk
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 WalStreamChunk
impl Debug for WalStreamChunk
Source§impl Default for WalStreamChunk
impl Default for WalStreamChunk
Source§fn default() -> WalStreamChunk
fn default() -> WalStreamChunk
Returns the “default value” for a type. Read more
Source§impl Message for WalStreamChunk
impl Message for WalStreamChunk
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for WalStreamChunk
impl PartialEq for WalStreamChunk
impl StructuralPartialEq for WalStreamChunk
Auto Trait Implementations§
impl Forget for WalStreamChunk
impl Freeze for WalStreamChunkwhere
*const u8 is !null: Freeze,
PhantomData<WalStreamRecord>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, String)>: Freeze,
impl Move for WalStreamChunk
impl RefUnwindSafe for WalStreamChunk
impl Send for WalStreamChunk
impl Sync for WalStreamChunk
impl Unpin for WalStreamChunk
impl UnsafeUnpin for WalStreamChunkwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<WalStreamRecord>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for WalStreamChunkwhere
RawVecInner: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
HashMap<String, String>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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> 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> ⓘ
Converts
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> ⓘ
Converts
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>
Wrap the input message
T in a tonic::Request