#[non_exhaustive]pub enum OffsetOptionType {
Policy = 0,
Offset = 1,
TailN = 2,
Timestamp = 3,
}Expand description
Enumeration of offset seeking strategies.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for OffsetOptionType
impl Clone for OffsetOptionType
impl Copy for OffsetOptionType
Source§impl Debug for OffsetOptionType
impl Debug for OffsetOptionType
Source§impl<'de> Deserialize<'de> for OffsetOptionType
impl<'de> Deserialize<'de> for OffsetOptionType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OffsetOptionType
impl Display for OffsetOptionType
impl Eq for OffsetOptionType
Source§impl Hash for OffsetOptionType
impl Hash for OffsetOptionType
Source§impl Ord for OffsetOptionType
impl Ord for OffsetOptionType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OffsetOptionType
impl PartialEq for OffsetOptionType
Source§impl PartialOrd for OffsetOptionType
impl PartialOrd for OffsetOptionType
Source§impl Serialize for OffsetOptionType
impl Serialize for OffsetOptionType
impl StructuralPartialEq for OffsetOptionType
Auto Trait Implementations§
impl Freeze for OffsetOptionType
impl RefUnwindSafe for OffsetOptionType
impl Send for OffsetOptionType
impl Sync for OffsetOptionType
impl Unpin for OffsetOptionType
impl UnsafeUnpin for OffsetOptionType
impl UnwindSafe for OffsetOptionType
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