pub struct LogDirectoryResult { /* private fields */ }Expand description
One broker log directory returned by DescribeLogDirs.
Implementations§
Source§impl LogDirectoryResult
impl LogDirectoryResult
Sourcepub fn error_code(&self) -> i16
pub fn error_code(&self) -> i16
Returns the log-directory error code.
Sourcepub fn total_bytes(&self) -> i64
pub fn total_bytes(&self) -> i64
Returns total bytes on this log directory’s volume, or -1 when the
negotiated broker version does not expose volume capacity.
Sourcepub fn usable_bytes(&self) -> i64
pub fn usable_bytes(&self) -> i64
Returns usable bytes on this log directory’s volume, or -1 when
unavailable.
Sourcepub fn is_cordoned(&self) -> bool
pub fn is_cordoned(&self) -> bool
Returns whether this log directory’s volume is cordoned.
Sourcepub fn topics(&self) -> &[LogDirectoryTopicResult]
pub fn topics(&self) -> &[LogDirectoryTopicResult]
Returns topic storage results in broker response order.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns whether Kafka accepted this log-directory query.
Sourcepub fn broker_error_kind(&self) -> Option<BrokerErrorKind>
pub fn broker_error_kind(&self) -> Option<BrokerErrorKind>
Returns kafrust’s log-directory error classification, when present.
Trait Implementations§
Source§impl Clone for LogDirectoryResult
impl Clone for LogDirectoryResult
Source§fn clone(&self) -> LogDirectoryResult
fn clone(&self) -> LogDirectoryResult
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 LogDirectoryResult
impl Debug for LogDirectoryResult
impl Eq for LogDirectoryResult
Source§impl PartialEq for LogDirectoryResult
impl PartialEq for LogDirectoryResult
impl StructuralPartialEq for LogDirectoryResult
Auto Trait Implementations§
impl Freeze for LogDirectoryResult
impl RefUnwindSafe for LogDirectoryResult
impl Send for LogDirectoryResult
impl Sync for LogDirectoryResult
impl Unpin for LogDirectoryResult
impl UnsafeUnpin for LogDirectoryResult
impl UnwindSafe for LogDirectoryResult
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