pub struct DescribeLogDirsResult {
pub error_code: i16,
pub log_dir: String,
pub topics: Vec<DescribeLogDirsTopic>,
pub total_bytes: i64,
pub usable_bytes: i64,
}Expand description
One directory in a DescribeLogDirs (api 35) response.
Java LogDirDescription. First-directory ErrorCode is this struct’s
error_code, not a first-partition field. total_bytes /
usable_bytes are v4 (official JSON default -1; decode fills -1
on v1–v3). Self::total_bytes / Self::usable_bytes are None
when the wire value is UNKNOWN_VOLUME_BYTES.
Fields§
§error_code: i16Kafka error code (0 is success).
log_dir: StringLog directory path.
topics: Vec<DescribeLogDirsTopic>Topics in this request or response.
total_bytes: i64Total bytes on this log directory.
usable_bytes: i64Usable bytes on this log directory.
Implementations§
Source§impl DescribeLogDirsResult
impl DescribeLogDirsResult
Sourcepub fn new(
error_code: i16,
log_dir: impl Into<String>,
topics: Vec<DescribeLogDirsTopic>,
total_bytes: i64,
usable_bytes: i64,
) -> Self
pub fn new( error_code: i16, log_dir: impl Into<String>, topics: Vec<DescribeLogDirsTopic>, total_bytes: i64, usable_bytes: i64, ) -> Self
Construct Self.
Sourcepub fn error_code(&self) -> i16
pub fn error_code(&self) -> i16
Kafka error code (0 is success).
Sourcepub fn topics(&self) -> &[DescribeLogDirsTopic]
pub fn topics(&self) -> &[DescribeLogDirsTopic]
Topics in this log directory.
Sourcepub fn total_bytes(&self) -> Option<i64>
pub fn total_bytes(&self) -> Option<i64>
Java LogDirDescription.totalBytes (None when UNKNOWN_VOLUME_BYTES).
Sourcepub fn usable_bytes(&self) -> Option<i64>
pub fn usable_bytes(&self) -> Option<i64>
Java LogDirDescription.usableBytes (None when UNKNOWN_VOLUME_BYTES).
Trait Implementations§
Source§impl Clone for DescribeLogDirsResult
impl Clone for DescribeLogDirsResult
Source§fn clone(&self) -> DescribeLogDirsResult
fn clone(&self) -> DescribeLogDirsResult
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 DescribeLogDirsResult
impl Debug for DescribeLogDirsResult
impl Eq for DescribeLogDirsResult
Source§impl PartialEq for DescribeLogDirsResult
impl PartialEq for DescribeLogDirsResult
impl StructuralPartialEq for DescribeLogDirsResult
Auto Trait Implementations§
impl Freeze for DescribeLogDirsResult
impl RefUnwindSafe for DescribeLogDirsResult
impl Send for DescribeLogDirsResult
impl Sync for DescribeLogDirsResult
impl Unpin for DescribeLogDirsResult
impl UnsafeUnpin for DescribeLogDirsResult
impl UnwindSafe for DescribeLogDirsResult
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