pub struct FetchResponseFacts {
pub from: u64,
pub leader: Option<u64>,
pub epoch: u32,
pub error_none: bool,
}Expand description
Who answered a Fetch, and which leader, epoch and error the answer names.
Fields§
§from: u64The node the request was sent to.
leader: Option<u64>The response’s CurrentLeader.LeaderId, None for Kafka’s -1.
epoch: u32The response’s CurrentLeader.LeaderEpoch.
error_none: boolThe partition’s ErrorCode is NONE. A Kafka KRaft replica answers
NONE only as the leader of its epoch; any other replica answers
validateLeaderOnlyRequest’s error with the leader it knows.
Trait Implementations§
Source§impl Clone for FetchResponseFacts
impl Clone for FetchResponseFacts
Source§fn clone(&self) -> FetchResponseFacts
fn clone(&self) -> FetchResponseFacts
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 moreimpl Copy for FetchResponseFacts
Source§impl Debug for FetchResponseFacts
impl Debug for FetchResponseFacts
impl Eq for FetchResponseFacts
Source§impl PartialEq for FetchResponseFacts
impl PartialEq for FetchResponseFacts
impl StructuralPartialEq for FetchResponseFacts
Auto Trait Implementations§
impl Freeze for FetchResponseFacts
impl RefUnwindSafe for FetchResponseFacts
impl Send for FetchResponseFacts
impl Sync for FetchResponseFacts
impl Unpin for FetchResponseFacts
impl UnsafeUnpin for FetchResponseFacts
impl UnwindSafe for FetchResponseFacts
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