pub struct SubscribeCommittedOptions<'a> {
pub from_offset: u64,
pub cf: Option<u32>,
pub key_prefix: Vec<u8>,
pub include_values: bool,
pub subscription_id: Option<String>,
pub checkpoint: Option<&'a dyn CheckpointStore>,
pub auto_commit: bool,
pub shard_id: u64,
}Expand description
Configuration for crate::StateletClient::subscribe_committed.
cf uses Option<u32> so that None means “the client’s default CF” while
Some(0) selects CF 0 (matching the Python keyword default of cf=None).
Fields§
§from_offset: u64First Raft offset to deliver when no checkpoint applies (0 = live-only).
cf: Option<u32>§key_prefix: Vec<u8>§include_values: bool§subscription_id: Option<String>§checkpoint: Option<&'a dyn CheckpointStore>§auto_commit: bool§shard_id: u64Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SubscribeCommittedOptions<'a>
impl<'a> !UnwindSafe for SubscribeCommittedOptions<'a>
impl<'a> Freeze for SubscribeCommittedOptions<'a>
impl<'a> Send for SubscribeCommittedOptions<'a>
impl<'a> Sync for SubscribeCommittedOptions<'a>
impl<'a> Unpin for SubscribeCommittedOptions<'a>
impl<'a> UnsafeUnpin for SubscribeCommittedOptions<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
Wrap the input message
T in a tonic::Request