pub struct FetchTopic {
pub topic: String,
pub topic_id: [u8; 16],
pub partitions: Vec<FetchPartition>,
}Expand description
One topic in a Fetch request.
Self::error_result is Java FetchRequest.getErrorResponse one topic.
Fields§
§topic: StringTopic name (v4–v12). Empty at v13+ (topic id on the wire).
topic_id: [u8; 16]Topic id (v13+). Zeros when the request uses a name.
partitions: Vec<FetchPartition>Partitions to fetch.
Implementations§
Source§impl FetchTopic
impl FetchTopic
Sourcepub fn error_result(&self, version: i16, error_code: i16) -> FetchedTopic
pub fn error_result(&self, version: i16, error_code: i16) -> FetchedTopic
Java FetchRequest.getErrorResponse one topic.
Each partition is FetchedPartition::partition_response. Fetch v13
and later omit partitions (top-level error only). Throttle on the
response is the JSON default (0).
Trait Implementations§
Source§impl Clone for FetchTopic
impl Clone for FetchTopic
Source§fn clone(&self) -> FetchTopic
fn clone(&self) -> FetchTopic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FetchTopic
impl RefUnwindSafe for FetchTopic
impl Send for FetchTopic
impl Sync for FetchTopic
impl Unpin for FetchTopic
impl UnsafeUnpin for FetchTopic
impl UnwindSafe for FetchTopic
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