pub struct StreamPending {
pub idle_time: u64,
pub with_time: bool,
pub start_id: StreamId,
pub end_id: StreamId,
pub exclude_start: bool,
pub exclude_end: bool,
pub count: Option<usize>,
pub consumer: Option<String>,
}Expand description
Domain operation (aligned with Apache Kvrocks StreamPendingOpt). XPENDING 配置选项(对标 Apache Kvrocks StreamPendingOpt)
Fields§
§idle_time: u64§with_time: bool§start_id: StreamId§end_id: StreamId§exclude_start: bool§exclude_end: bool§count: Option<usize>§consumer: Option<String>Implementations§
Source§impl StreamPending
impl StreamPending
pub fn summary() -> Self
pub fn range(start_id: StreamId, end_id: StreamId, count: usize) -> Self
pub fn idle(self, idle_time: u64) -> Self
pub fn consumer(self, consumer: impl Into<String>) -> Self
pub fn exclude_start(self, exclude: bool) -> Self
pub fn exclude_end(self, exclude: bool) -> Self
Trait Implementations§
Source§impl Clone for StreamPending
impl Clone for StreamPending
Source§fn clone(&self) -> StreamPending
fn clone(&self) -> StreamPending
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 StreamPending
impl Debug for StreamPending
impl<'__de> Decode<'__de> for StreamPendingwhere
'__de:,
Source§impl Default for StreamPending
impl Default for StreamPending
impl Encode for StreamPending
impl Eq for StreamPending
Source§impl PartialEq for StreamPending
impl PartialEq for StreamPending
impl StructuralPartialEq for StreamPending
Auto Trait Implementations§
impl Freeze for StreamPending
impl RefUnwindSafe for StreamPending
impl Send for StreamPending
impl Sync for StreamPending
impl Unpin for StreamPending
impl UnsafeUnpin for StreamPending
impl UnwindSafe for StreamPending
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.