Struct kafka_protocol::messages::describe_log_dirs_response::DescribeLogDirsPartitionBuilder
source · [−]pub struct DescribeLogDirsPartitionBuilder { /* private fields */ }
Expand description
Builder for DescribeLogDirsPartition
.
Implementations
sourceimpl DescribeLogDirsPartitionBuilder
impl DescribeLogDirsPartitionBuilder
sourcepub fn partition_index(&mut self, value: i32) -> &mut Self
pub fn partition_index(&mut self, value: i32) -> &mut Self
The partition index.
Supported API versions: 0-3
sourcepub fn partition_size(&mut self, value: i64) -> &mut Self
pub fn partition_size(&mut self, value: i64) -> &mut Self
The size of the log segments in this partition in bytes.
Supported API versions: 0-3
sourcepub fn offset_lag(&mut self, value: i64) -> &mut Self
pub fn offset_lag(&mut self, value: i64) -> &mut Self
The lag of the log’s LEO w.r.t. partition’s HW (if it is the current log for the partition) or current replica’s LEO (if it is the future log for the partition)
Supported API versions: 0-3
sourcepub fn is_future_key(&mut self, value: bool) -> &mut Self
pub fn is_future_key(&mut self, value: bool) -> &mut Self
True if this log is created by AlterReplicaLogDirsRequest and will replace the current log of the replica in the future.
Supported API versions: 0-3
sourcepub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Vec<u8>>
) -> &mut Self
pub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Vec<u8>>
) -> &mut Self
Other tagged fields
sourcepub fn build(
&self
) -> Result<DescribeLogDirsPartition, DescribeLogDirsPartitionBuilderError>
pub fn build(
&self
) -> Result<DescribeLogDirsPartition, DescribeLogDirsPartitionBuilderError>
Trait Implementations
sourceimpl Clone for DescribeLogDirsPartitionBuilder
impl Clone for DescribeLogDirsPartitionBuilder
sourcefn clone(&self) -> DescribeLogDirsPartitionBuilder
fn clone(&self) -> DescribeLogDirsPartitionBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for DescribeLogDirsPartitionBuilder
impl Send for DescribeLogDirsPartitionBuilder
impl Sync for DescribeLogDirsPartitionBuilder
impl Unpin for DescribeLogDirsPartitionBuilder
impl UnwindSafe for DescribeLogDirsPartitionBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more