pub struct FetchResponse<R>{
pub throttle_time_ms: i32,
pub error_code: ErrorCode,
pub session_id: i32,
pub topics: Vec<FetchableTopicResponse<R>>,
}Fields§
§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.
error_code: ErrorCode§session_id: i32§topics: Vec<FetchableTopicResponse<R>>The response topics.
Implementations§
Source§impl<R> FetchResponse<R>
impl<R> FetchResponse<R>
pub fn find_partition( self, topic: &str, partition: i32, ) -> Option<FetchablePartitionResponse<R>>
Source§impl<R> FetchResponse<R>
impl<R> FetchResponse<R>
pub fn find_topic(&self, topic: &str) -> Option<&FetchableTopicResponse<R>>where
R: Debug,
Trait Implementations§
Source§impl<R> Debug for FetchResponse<R>
impl<R> Debug for FetchResponse<R>
Source§impl<R> Decoder for FetchResponse<R>
impl<R> Decoder for FetchResponse<R>
Source§impl<R> Default for FetchResponse<R>
impl<R> Default for FetchResponse<R>
Source§impl<R> Encoder for FetchResponse<R>
impl<R> Encoder for FetchResponse<R>
Auto Trait Implementations§
impl<R> !Freeze for FetchResponse<R>
impl<R> RefUnwindSafe for FetchResponse<R>where
R: RefUnwindSafe,
impl<R> Send for FetchResponse<R>where
R: Send,
impl<R> Sync for FetchResponse<R>where
R: Sync,
impl<R> Unpin for FetchResponse<R>where
R: Unpin,
impl<R> UnwindSafe for FetchResponse<R>where
R: UnwindSafe,
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