pub enum StreamOffset {
Kafka {
topic: String,
partition: i32,
offset: i64,
},
Redis {
stream: String,
id: String,
},
Nats {
subject: String,
sequence: u64,
},
Sequence(u64),
}Expand description
Offset within a stream (provider-specific).
Variants§
Kafka
Kafka-style: topic + partition + offset.
Fields
Redis
Redis-style: stream name + message ID.
Nats
NATS-style: subject + sequence.
Sequence(u64)
Generic sequence number.
Trait Implementations§
Source§impl Clone for StreamOffset
impl Clone for StreamOffset
Source§impl Debug for StreamOffset
impl Debug for StreamOffset
impl Eq for StreamOffset
Source§impl Hash for StreamOffset
impl Hash for StreamOffset
Source§impl PartialEq for StreamOffset
impl PartialEq for StreamOffset
impl StructuralPartialEq for StreamOffset
Auto Trait Implementations§
impl Freeze for StreamOffset
impl RefUnwindSafe for StreamOffset
impl Send for StreamOffset
impl Sync for StreamOffset
impl Unpin for StreamOffset
impl UnsafeUnpin for StreamOffset
impl UnwindSafe for StreamOffset
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.