pub enum StreamCursorPrecision {
ByteOffset,
ChunkSequenceOnly,
Marker,
}Expand description
Enumerates the finite stream cursor precision cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
ByteOffset
Use this variant when the contract needs to represent byte offset; selecting it has no side effect by itself.
ChunkSequenceOnly
Use this variant when the contract needs to represent chunk sequence only; selecting it has no side effect by itself.
Marker
Use this variant when the contract needs to represent marker; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for StreamCursorPrecision
impl Clone for StreamCursorPrecision
Source§fn clone(&self) -> StreamCursorPrecision
fn clone(&self) -> StreamCursorPrecision
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 StreamCursorPrecision
impl Debug for StreamCursorPrecision
Source§impl<'de> Deserialize<'de> for StreamCursorPrecision
impl<'de> Deserialize<'de> for StreamCursorPrecision
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 Hash for StreamCursorPrecision
impl Hash for StreamCursorPrecision
Source§impl Ord for StreamCursorPrecision
impl Ord for StreamCursorPrecision
Source§fn cmp(&self, other: &StreamCursorPrecision) -> Ordering
fn cmp(&self, other: &StreamCursorPrecision) -> Ordering
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
Source§impl PartialEq for StreamCursorPrecision
impl PartialEq for StreamCursorPrecision
Source§fn eq(&self, other: &StreamCursorPrecision) -> bool
fn eq(&self, other: &StreamCursorPrecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StreamCursorPrecision
impl PartialOrd for StreamCursorPrecision
Source§impl Serialize for StreamCursorPrecision
impl Serialize for StreamCursorPrecision
impl Eq for StreamCursorPrecision
impl StructuralPartialEq for StreamCursorPrecision
Auto Trait Implementations§
impl Freeze for StreamCursorPrecision
impl RefUnwindSafe for StreamCursorPrecision
impl Send for StreamCursorPrecision
impl Sync for StreamCursorPrecision
impl Unpin for StreamCursorPrecision
impl UnsafeUnpin for StreamCursorPrecision
impl UnwindSafe for StreamCursorPrecision
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