pub struct DescribeProducersResponse {
pub throttle_time_ms: i32,
pub topics: Vec<DescribeProducersTopic>,
}Expand description
DescribeProducers v0 response body. There is no top-level ErrorCode after throttle; the first-partition code is later in the body.
Fields§
§throttle_time_ms: i32DescribeProducers ThrottleTimeMs (JSON 0+). First field.
JSON default is 0.
topics: Vec<DescribeProducersTopic>Topics in this request or response.
Implementations§
Source§impl DescribeProducersResponse
impl DescribeProducersResponse
Sourcepub fn new(topics: Vec<DescribeProducersTopic>) -> Self
pub fn new(topics: Vec<DescribeProducersTopic>) -> Self
Construct Self.
Sourcepub fn throttle_time_ms(&self) -> i32
pub fn throttle_time_ms(&self) -> i32
DescribeProducers ThrottleTimeMs (JSON 0+).
Sourcepub fn topics(&self) -> &[DescribeProducersTopic]
pub fn topics(&self) -> &[DescribeProducersTopic]
Per-topic producer state.
Sourcepub fn error_counts(&self) -> HashMap<i16, i32>
pub fn error_counts(&self) -> HashMap<i16, i32>
Java DescribeProducersResponse.errorCounts.
Counts partition-level error codes (including NONE). There is
no top-level errorCode.
Trait Implementations§
Source§impl Clone for DescribeProducersResponse
impl Clone for DescribeProducersResponse
Source§fn clone(&self) -> DescribeProducersResponse
fn clone(&self) -> DescribeProducersResponse
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 moreSource§impl Debug for DescribeProducersResponse
impl Debug for DescribeProducersResponse
impl Eq for DescribeProducersResponse
impl StructuralPartialEq for DescribeProducersResponse
Auto Trait Implementations§
impl Freeze for DescribeProducersResponse
impl RefUnwindSafe for DescribeProducersResponse
impl Send for DescribeProducersResponse
impl Sync for DescribeProducersResponse
impl Unpin for DescribeProducersResponse
impl UnsafeUnpin for DescribeProducersResponse
impl UnwindSafe for DescribeProducersResponse
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