pub struct StoreConsumerOffset {
pub consumer: Consumer,
pub stream_id: Identifier,
pub topic_id: Identifier,
pub partition_id: Option<u32>,
pub offset: u64,
}Expand description
StoreConsumerOffset command stores the offset of a consumer for a given partition on the server.
It has additional payload:
consumer- the consumer that is storing the offset, either the regular consumer or the consumer group.stream_id- unique stream ID (numeric or name).topic_id- unique topic ID (numeric or name).partition_id- partition ID on which the offset is stored. Has to be specified for the regular consumer. For consumer group it is ignored (useNone).offset- offset to store.
Fields§
§consumer: ConsumerThe consumer that is storing the offset, either the regular consumer or the consumer group.
stream_id: IdentifierUnique stream ID (numeric or name).
topic_id: IdentifierUnique topic ID (numeric or name).
partition_id: Option<u32>Partition ID on which the offset is stored. Has to be specified for the regular consumer. For consumer group it is ignored (use None).
offset: u64Offset to store.
Trait Implementations§
Source§impl BytesSerializable for StoreConsumerOffset
impl BytesSerializable for StoreConsumerOffset
Source§fn from_bytes(bytes: Bytes) -> Result<StoreConsumerOffset, IggyError>
fn from_bytes(bytes: Bytes) -> Result<StoreConsumerOffset, IggyError>
Deserializes the struct from bytes.
Source§fn write_to_buffer(&self, _buf: &mut BytesMut)
fn write_to_buffer(&self, _buf: &mut BytesMut)
Write the struct to a buffer.
Source§fn get_buffer_size(&self) -> usize
fn get_buffer_size(&self) -> usize
Get the byte-size of the struct.
Source§impl Debug for StoreConsumerOffset
impl Debug for StoreConsumerOffset
Source§impl Default for StoreConsumerOffset
impl Default for StoreConsumerOffset
Source§impl<'de> Deserialize<'de> for StoreConsumerOffset
impl<'de> Deserialize<'de> for StoreConsumerOffset
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 StoreConsumerOffset
impl Display for StoreConsumerOffset
Source§impl PartialEq for StoreConsumerOffset
impl PartialEq for StoreConsumerOffset
Source§impl Serialize for StoreConsumerOffset
impl Serialize for StoreConsumerOffset
Source§impl Validatable<IggyError> for StoreConsumerOffset
impl Validatable<IggyError> for StoreConsumerOffset
impl StructuralPartialEq for StoreConsumerOffset
Auto Trait Implementations§
impl Freeze for StoreConsumerOffset
impl RefUnwindSafe for StoreConsumerOffset
impl Send for StoreConsumerOffset
impl Sync for StoreConsumerOffset
impl Unpin for StoreConsumerOffset
impl UnsafeUnpin for StoreConsumerOffset
impl UnwindSafe for StoreConsumerOffset
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more