#[non_exhaustive]pub struct StateBatch {
pub first_offset: i64,
pub last_offset: i64,
pub delivery_state: i8,
pub delivery_count: i16,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.first_offset: i64
The first offset of this state batch.
Supported API versions: 0
last_offset: i64
The last offset of this state batch.
Supported API versions: 0
delivery_state: i8
The delivery state - 0:Available,2:Acked,4:Archived.
Supported API versions: 0
delivery_count: i16
The delivery count.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl StateBatch
impl StateBatch
Sourcepub fn with_first_offset(self, value: i64) -> Self
pub fn with_first_offset(self, value: i64) -> Self
Sets first_offset
to the passed value.
The first offset of this state batch.
Supported API versions: 0
Sourcepub fn with_last_offset(self, value: i64) -> Self
pub fn with_last_offset(self, value: i64) -> Self
Sets last_offset
to the passed value.
The last offset of this state batch.
Supported API versions: 0
Sourcepub fn with_delivery_state(self, value: i8) -> Self
pub fn with_delivery_state(self, value: i8) -> Self
Sets delivery_state
to the passed value.
The delivery state - 0:Available,2:Acked,4:Archived.
Supported API versions: 0
Sourcepub fn with_delivery_count(self, value: i16) -> Self
pub fn with_delivery_count(self, value: i16) -> Self
Sets delivery_count
to the passed value.
The delivery count.
Supported API versions: 0
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for StateBatch
impl Clone for StateBatch
Source§fn clone(&self) -> StateBatch
fn clone(&self) -> StateBatch
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StateBatch
impl Debug for StateBatch
Source§impl Decodable for StateBatch
Available on crate feature broker
only.
impl Decodable for StateBatch
broker
only.Source§impl Default for StateBatch
impl Default for StateBatch
Source§impl Encodable for StateBatch
Available on crate feature client
only.
impl Encodable for StateBatch
client
only.