#[non_exhaustive]pub struct TxnOffsetCommitResponsePartition {
pub partition_index: i32,
pub error_code: i16,
pub unknown_tagged_fields: Vec<RawTaggedField>,
}Expand description
TxnOffsetCommitResponsePartition (nested in TxnOffsetCommitResponse).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.partition_index: i32The partition index.
error_code: i16The error code, or 0 if there was no error.
unknown_tagged_fields: Vec<RawTaggedField>Tagged fields not (yet) known to this crate, kept raw.
Implementations§
Source§impl TxnOffsetCommitResponsePartition
impl TxnOffsetCommitResponsePartition
Sourcepub fn encode(
&self,
buf: &mut impl BufMut,
version: i16,
) -> Result<(), EncodeError>
pub fn encode( &self, buf: &mut impl BufMut, version: i16, ) -> Result<(), EncodeError>
Encode this TxnOffsetCommitResponsePartition at version.
Sourcepub fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
pub fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
Decode one TxnOffsetCommitResponsePartition, bounding allocation by the default
Limits derived from buf’s remaining length.
Sourcepub fn decode_with_limits(
buf: &mut impl Buf,
version: i16,
limits: Limits,
) -> Result<Self, DecodeError>
pub fn decode_with_limits( buf: &mut impl Buf, version: i16, limits: Limits, ) -> Result<Self, DecodeError>
Decode one TxnOffsetCommitResponsePartition under limits.
Sourcepub fn decode_with_budget(
buf: &mut impl Buf,
version: i16,
budget: &mut Budget,
) -> Result<Self, DecodeError>
pub fn decode_with_budget( buf: &mut impl Buf, version: i16, budget: &mut Budget, ) -> Result<Self, DecodeError>
Decode one TxnOffsetCommitResponsePartition against an existing budget.
Trait Implementations§
impl StructuralPartialEq for TxnOffsetCommitResponsePartition
Auto Trait Implementations§
impl Forget for TxnOffsetCommitResponsePartition
impl Freeze for TxnOffsetCommitResponsePartition
impl Move for TxnOffsetCommitResponsePartition
impl RefUnwindSafe for TxnOffsetCommitResponsePartition
impl Send for TxnOffsetCommitResponsePartition
impl Sync for TxnOffsetCommitResponsePartition
impl Unpin for TxnOffsetCommitResponsePartition
impl UnsafeUnpin for TxnOffsetCommitResponsePartition
impl UnwindSafe for TxnOffsetCommitResponsePartition
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