#[non_exhaustive]pub struct OffsetFetchResponse {
pub throttle_time_ms: i32,
pub topics: Vec<OffsetFetchResponseTopic>,
pub error_code: i16,
pub groups: Vec<OffsetFetchResponseGroup>,
pub unknown_tagged_fields: Vec<RawTaggedField>,
}Expand description
OffsetFetchResponse, versions 1-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<OffsetFetchResponseTopic>The responses per topic.
error_code: i16The top-level error code, or 0 if there was no error.
groups: Vec<OffsetFetchResponseGroup>The responses per group id.
unknown_tagged_fields: Vec<RawTaggedField>Tagged fields not (yet) known to this crate, kept raw.
Implementations§
Source§impl OffsetFetchResponse
impl OffsetFetchResponse
Sourcepub const MIN_VERSION: i16 = 1
pub const MIN_VERSION: i16 = 1
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 OffsetFetchResponse 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 OffsetFetchResponse, 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 OffsetFetchResponse 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 OffsetFetchResponse against an existing budget.
Trait Implementations§
Source§impl Clone for OffsetFetchResponse
impl Clone for OffsetFetchResponse
Source§impl Debug for OffsetFetchResponse
impl Debug for OffsetFetchResponse
Source§impl Default for OffsetFetchResponse
impl Default for OffsetFetchResponse
Source§impl Message for OffsetFetchResponse
impl Message for OffsetFetchResponse
Source§const MIN_VERSION: i16 = 1
const MIN_VERSION: i16 = 1
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 OffsetFetchResponse
impl PartialEq for OffsetFetchResponse
impl StructuralPartialEq for OffsetFetchResponse
Auto Trait Implementations§
impl Forget for OffsetFetchResponse
impl Freeze for OffsetFetchResponse
impl Move for OffsetFetchResponse
impl RefUnwindSafe for OffsetFetchResponse
impl Send for OffsetFetchResponse
impl Sync for OffsetFetchResponse
impl Unpin for OffsetFetchResponse
impl UnsafeUnpin for OffsetFetchResponse
impl UnwindSafe for OffsetFetchResponse
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