pub struct ListOffsetsResponse;Expand description
Java ListOffsetsResponse helpers.
Implementations§
Source§impl ListOffsetsResponse
impl ListOffsetsResponse
Sourcepub const fn should_client_throttle(version: i16) -> bool
pub const fn should_client_throttle(version: i16) -> bool
Java ListOffsetsResponse.shouldClientThrottle.
Sourcepub fn error_counts(topics: &[ListOffsetsTopicResponse]) -> HashMap<i16, i32>
pub fn error_counts(topics: &[ListOffsetsTopicResponse]) -> HashMap<i16, i32>
Java ListOffsetsResponse.errorCounts.
Counts partition-level error codes (including NONE).
Sourcepub fn singleton_list_offsets_topic_response(
topic: impl Into<String>,
partition: i32,
error_code: i16,
timestamp: i64,
offset: i64,
epoch: i32,
) -> ListOffsetsTopicResponse
pub fn singleton_list_offsets_topic_response( topic: impl Into<String>, partition: i32, error_code: i16, timestamp: i64, offset: i64, epoch: i32, ) -> ListOffsetsTopicResponse
Java ListOffsetsResponse.singletonListOffsetsTopicResponse.
Java takes TopicPartition plus Errors; this type stores the topic
name and partition index as fields, so callers pass them.
Auto Trait Implementations§
impl Freeze for ListOffsetsResponse
impl RefUnwindSafe for ListOffsetsResponse
impl Send for ListOffsetsResponse
impl Sync for ListOffsetsResponse
impl Unpin for ListOffsetsResponse
impl UnsafeUnpin for ListOffsetsResponse
impl UnwindSafe for ListOffsetsResponse
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