#[repr(u8)]pub enum StreamTrimStrategy {
None = 0,
MaxLen = 1,
MinId = 2,
}Expand description
Stream trim strategy (aligned with Apache Kvrocks StreamTrimStrategy). Stream 裁剪策略(对标 Apache Kvrocks StreamTrimStrategy)
Variants§
Trait Implementations§
Source§impl Clone for StreamTrimStrategy
impl Clone for StreamTrimStrategy
Source§fn clone(&self) -> StreamTrimStrategy
fn clone(&self) -> StreamTrimStrategy
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 moreimpl Copy for StreamTrimStrategy
Source§impl Debug for StreamTrimStrategy
impl Debug for StreamTrimStrategy
impl<'__de> Decode<'__de> for StreamTrimStrategywhere
'__de:,
Source§impl Default for StreamTrimStrategy
impl Default for StreamTrimStrategy
Source§fn default() -> StreamTrimStrategy
fn default() -> StreamTrimStrategy
Returns the “default value” for a type. Read more
impl Encode for StreamTrimStrategy
impl Eq for StreamTrimStrategy
Source§impl PartialEq for StreamTrimStrategy
impl PartialEq for StreamTrimStrategy
impl StructuralPartialEq for StreamTrimStrategy
Auto Trait Implementations§
impl Freeze for StreamTrimStrategy
impl RefUnwindSafe for StreamTrimStrategy
impl Send for StreamTrimStrategy
impl Sync for StreamTrimStrategy
impl Unpin for StreamTrimStrategy
impl UnsafeUnpin for StreamTrimStrategy
impl UnwindSafe for StreamTrimStrategy
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.