pub struct KfFetchResponse<R>{
pub throttle_time_ms: i32,
pub error_code: ErrorCode,
pub session_id: i32,
pub topics: Vec<FetchableTopicResponse<R>>,
}
Fields§
§throttle_time_ms: i32
The 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
The top level response error code.
session_id: i32
The fetch session ID, or 0 if this is not part of a fetch session.
topics: Vec<FetchableTopicResponse<R>>
The response topics.
Implementations§
Source§impl<R> KfFetchResponse<R>
impl<R> KfFetchResponse<R>
pub fn find_partition( self, topic: &str, partition: i32, ) -> Option<FetchablePartitionResponse<R>>
Source§impl<R> KfFetchResponse<R>
impl<R> KfFetchResponse<R>
pub fn find_topic(&self, topic: &String) -> Option<&FetchableTopicResponse<R>>where
R: Debug,
Trait Implementations§
Source§impl<R> Debug for KfFetchResponse<R>
impl<R> Debug for KfFetchResponse<R>
Source§impl<R> Decoder for KfFetchResponse<R>
impl<R> Decoder for KfFetchResponse<R>
Source§impl<R> Default for KfFetchResponse<R>
impl<R> Default for KfFetchResponse<R>
Source§impl<'de, R> Deserialize<'de> for KfFetchResponse<R>
impl<'de, R> Deserialize<'de> for KfFetchResponse<R>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<R> Encoder for KfFetchResponse<R>
impl<R> Encoder for KfFetchResponse<R>
Auto Trait Implementations§
impl<R> Freeze for KfFetchResponse<R>
impl<R> RefUnwindSafe for KfFetchResponse<R>where
R: RefUnwindSafe,
impl<R> Send for KfFetchResponse<R>where
R: Send,
impl<R> Sync for KfFetchResponse<R>where
R: Sync,
impl<R> Unpin for KfFetchResponse<R>where
R: Unpin,
impl<R> UnwindSafe for KfFetchResponse<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