#[non_exhaustive]pub struct OffsetCommitResponse {
pub throttle_time_ms: i32,
pub topics: Vec<OffsetCommitResponseTopic>,
pub unknown_tagged_fields: Vec<RawTaggedField>,
}Expand description
OffsetCommitResponse, versions 2-10.
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.throttle_time_ms: i32The duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota.
topics: Vec<OffsetCommitResponseTopic>The responses for each topic.
unknown_tagged_fields: Vec<RawTaggedField>Tagged fields not (yet) known to this crate, kept raw.
Implementations§
Source§impl OffsetCommitResponse
impl OffsetCommitResponse
Sourcepub const MIN_VERSION: i16 = 2
pub const MIN_VERSION: i16 = 2
The lowest schema version this snapshot can speak.
Sourcepub const MAX_VERSION: i16 = 10
pub const MAX_VERSION: i16 = 10
The highest schema version this snapshot can speak.
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 OffsetCommitResponse 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 OffsetCommitResponse, 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 OffsetCommitResponse 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 OffsetCommitResponse against an existing budget.
Trait Implementations§
Source§impl Clone for OffsetCommitResponse
impl Clone for OffsetCommitResponse
Source§impl Debug for OffsetCommitResponse
impl Debug for OffsetCommitResponse
Source§impl Default for OffsetCommitResponse
impl Default for OffsetCommitResponse
Source§impl Message for OffsetCommitResponse
impl Message for OffsetCommitResponse
Source§const MIN_VERSION: i16 = 2
const MIN_VERSION: i16 = 2
The lowest schema version this snapshot can speak.
Source§const MAX_VERSION: i16 = 10
const MAX_VERSION: i16 = 10
The highest schema version this snapshot can speak.
fn encode(&self, buf: &mut impl BufMut, version: i16) -> Result<(), EncodeError>
Source§fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
Decode one message of
version. Read morefn decode_with_limits( buf: &mut impl Buf, version: i16, limits: Limits, ) -> Result<Self, DecodeError>
Source§impl PartialEq for OffsetCommitResponse
impl PartialEq for OffsetCommitResponse
impl StructuralPartialEq for OffsetCommitResponse
Auto Trait Implementations§
impl Forget for OffsetCommitResponse
impl Freeze for OffsetCommitResponse
impl Move for OffsetCommitResponse
impl RefUnwindSafe for OffsetCommitResponse
impl Send for OffsetCommitResponse
impl Sync for OffsetCommitResponse
impl Unpin for OffsetCommitResponse
impl UnsafeUnpin for OffsetCommitResponse
impl UnwindSafe for OffsetCommitResponse
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