#[non_exhaustive]pub enum Position<'a> {
Beginning,
End,
Unread,
SequenceNumber(u64),
TimeStamp(DateTime<Local>),
Since(&'a str),
}Expand description
Volga Consumer starting position.
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.
Beginning
Get all messages from the beginning.
End
Start consuming from the end, i.e only get new messages.
Unread
Get all unread messages.
SequenceNumber(u64)
Start consuming from a sequence number.
TimeStamp(DateTime<Local>)
Start consuming from a timestamp.
Since(&'a str)
Trait Implementations§
impl<'a> Copy for Position<'a>
Auto Trait Implementations§
impl<'a> Freeze for Position<'a>
impl<'a> RefUnwindSafe for Position<'a>
impl<'a> Send for Position<'a>
impl<'a> Sync for Position<'a>
impl<'a> Unpin for Position<'a>
impl<'a> UnsafeUnpin for Position<'a>
impl<'a> UnwindSafe for Position<'a>
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