#[non_exhaustive]pub struct StreamCheckpointsRequest {
pub start_sequence_number: Option<u64>,
pub end_sequence_number: Option<u64>,
pub read_mask: Option<FieldMask>,
pub transactions_filter: Option<TransactionFilter>,
pub events_filter: Option<EventFilter>,
pub filter_checkpoints: Option<bool>,
pub progress_interval_ms: Option<u32>,
pub max_message_size_bytes: Option<u32>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start_sequence_number: Option<u64>if no start sequence number is provided, streaming starts from the latest checkpoint
end_sequence_number: Option<u64>if no end sequence number is provided, streaming continues forever
read_mask: Option<FieldMask>Mask specifying which fields to read.
If no mask is specified, defaults to summary.
transactions_filter: Option<TransactionFilter>if no filter is passed, all transactions are included (if mentioned in the read_mask)
events_filter: Option<EventFilter>if no filter is passed, all events are included (if mentioned in the read_mask)
filter_checkpoints: Option<bool>When true, checkpoints with no matching transactions or events are skipped entirely. At least one of transactions_filter or events_filter must be set. A Progress message is sent periodically to indicate liveness and scan position.
progress_interval_ms: Option<u32>Progress message interval in milliseconds when filter_checkpoints is enabled. Defaults to 2000ms. Minimum value is 500ms; lower values are clamped.
max_message_size_bytes: Option<u32>Optional maximum message size the client can receive (1MB - 128MB) If not specified, server uses default chunking threshold (4MB)
Implementations§
Source§impl StreamCheckpointsRequest
impl StreamCheckpointsRequest
pub const START_SEQUENCE_NUMBER_FIELD: &'static MessageField
pub const END_SEQUENCE_NUMBER_FIELD: &'static MessageField
pub const READ_MASK_FIELD: &'static MessageField
pub const TRANSACTIONS_FILTER_FIELD: &'static MessageField
pub const EVENTS_FILTER_FIELD: &'static MessageField
pub const FILTER_CHECKPOINTS_FIELD: &'static MessageField
pub const PROGRESS_INTERVAL_MS_FIELD: &'static MessageField
pub const MAX_MESSAGE_SIZE_BYTES_FIELD: &'static MessageField
Source§impl StreamCheckpointsRequest
impl StreamCheckpointsRequest
Sourcepub fn with_start_sequence_number(self, field: u64) -> Self
pub fn with_start_sequence_number(self, field: u64) -> Self
Sets start_sequence_number with the provided value.
Sourcepub fn with_end_sequence_number(self, field: u64) -> Self
pub fn with_end_sequence_number(self, field: u64) -> Self
Sets end_sequence_number with the provided value.
Sourcepub fn with_read_mask<T: Into<FieldMask>>(self, field: T) -> Self
pub fn with_read_mask<T: Into<FieldMask>>(self, field: T) -> Self
Sets read_mask with the provided value.
Sourcepub fn with_transactions_filter<T: Into<TransactionFilter>>(
self,
field: T,
) -> Self
pub fn with_transactions_filter<T: Into<TransactionFilter>>( self, field: T, ) -> Self
Sets transactions_filter with the provided value.
Sourcepub fn with_events_filter<T: Into<EventFilter>>(self, field: T) -> Self
pub fn with_events_filter<T: Into<EventFilter>>(self, field: T) -> Self
Sets events_filter with the provided value.
Sourcepub fn with_filter_checkpoints(self, field: bool) -> Self
pub fn with_filter_checkpoints(self, field: bool) -> Self
Sets filter_checkpoints with the provided value.
Sourcepub fn with_progress_interval_ms(self, field: u32) -> Self
pub fn with_progress_interval_ms(self, field: u32) -> Self
Sets progress_interval_ms with the provided value.
Sourcepub fn with_max_message_size_bytes(self, field: u32) -> Self
pub fn with_max_message_size_bytes(self, field: u32) -> Self
Sets max_message_size_bytes with the provided value.
Source§impl StreamCheckpointsRequest
impl StreamCheckpointsRequest
Sourcepub fn start_sequence_number(&self) -> u64
pub fn start_sequence_number(&self) -> u64
Returns the value of start_sequence_number, or the default value if start_sequence_number is unset.
Sourcepub fn end_sequence_number(&self) -> u64
pub fn end_sequence_number(&self) -> u64
Returns the value of end_sequence_number, or the default value if end_sequence_number is unset.
Sourcepub fn filter_checkpoints(&self) -> bool
pub fn filter_checkpoints(&self) -> bool
Returns the value of filter_checkpoints, or the default value if filter_checkpoints is unset.
Sourcepub fn progress_interval_ms(&self) -> u32
pub fn progress_interval_ms(&self) -> u32
Returns the value of progress_interval_ms, or the default value if progress_interval_ms is unset.
Sourcepub fn max_message_size_bytes(&self) -> u32
pub fn max_message_size_bytes(&self) -> u32
Returns the value of max_message_size_bytes, or the default value if max_message_size_bytes is unset.
Trait Implementations§
Source§impl Clone for StreamCheckpointsRequest
impl Clone for StreamCheckpointsRequest
Source§fn clone(&self) -> StreamCheckpointsRequest
fn clone(&self) -> StreamCheckpointsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreamCheckpointsRequest
impl Debug for StreamCheckpointsRequest
Source§impl Default for StreamCheckpointsRequest
impl Default for StreamCheckpointsRequest
Source§impl Message for StreamCheckpointsRequest
impl Message for StreamCheckpointsRequest
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 StreamCheckpointsRequest
impl PartialEq for StreamCheckpointsRequest
impl StructuralPartialEq for StreamCheckpointsRequest
Auto Trait Implementations§
impl !Freeze for StreamCheckpointsRequest
impl RefUnwindSafe for StreamCheckpointsRequest
impl Send for StreamCheckpointsRequest
impl Sync for StreamCheckpointsRequest
impl Unpin for StreamCheckpointsRequest
impl UnwindSafe for StreamCheckpointsRequest
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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,
§impl<T> Conv for T
impl<T> Conv for 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> 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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.