pub struct CreateTopicsResult { /* private fields */ }Expand description
Complete response from one CreateTopics operation.
Implementations§
Source§impl CreateTopicsResult
impl CreateTopicsResult
Sourcepub fn throttle_time(&self) -> Duration
pub fn throttle_time(&self) -> Duration
Returns the broker throttle time.
Sourcepub fn topics(&self) -> &[CreateTopicResult]
pub fn topics(&self) -> &[CreateTopicResult]
Returns per-topic outcomes in broker response order.
Sourcepub fn into_topics(self) -> Vec<CreateTopicResult>
pub fn into_topics(self) -> Vec<CreateTopicResult>
Consumes this response and returns per-topic outcomes.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Returns whether at least one topic was rejected.
Trait Implementations§
Source§impl Clone for CreateTopicsResult
impl Clone for CreateTopicsResult
Source§fn clone(&self) -> CreateTopicsResult
fn clone(&self) -> CreateTopicsResult
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 CreateTopicsResult
impl Debug for CreateTopicsResult
impl Eq for CreateTopicsResult
Source§impl PartialEq for CreateTopicsResult
impl PartialEq for CreateTopicsResult
impl StructuralPartialEq for CreateTopicsResult
Auto Trait Implementations§
impl Freeze for CreateTopicsResult
impl RefUnwindSafe for CreateTopicsResult
impl Send for CreateTopicsResult
impl Sync for CreateTopicsResult
impl Unpin for CreateTopicsResult
impl UnsafeUnpin for CreateTopicsResult
impl UnwindSafe for CreateTopicsResult
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