pub struct PartitionDirAssignmentRecord {
pub topic: String,
pub partition: i32,
pub replica: NodeId,
pub directory: Uuid,
}Expand description
KIP-858 directory-assignment delta. A broker reports which log-dir UUID
hosts its replica of (topic, partition). Applied as a DELTA: sets ONLY
the reporting replica’s slot in PartitionRecord.directories, never
touching leader/isr/replicas/adding/removing — so it cannot clobber a
concurrent reassignment or ISR change. On the KRaft log it rides a
Crabka-private carrier (via to_kraft) so it decodes back to this same
delta and applies as a one-slot merge — never a full-record replace.
Fields§
§topic: String§partition: i32§replica: NodeIdThe reporting broker (must be a replica of the partition).
directory: UuidThe log-directory UUID hosting this broker’s replica.
Trait Implementations§
Source§impl Clone for PartitionDirAssignmentRecord
impl Clone for PartitionDirAssignmentRecord
Source§fn clone(&self) -> PartitionDirAssignmentRecord
fn clone(&self) -> PartitionDirAssignmentRecord
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 PartitionDirAssignmentRecord
impl Debug for PartitionDirAssignmentRecord
Source§impl<'de> Deserialize<'de> for PartitionDirAssignmentRecord
impl<'de> Deserialize<'de> for PartitionDirAssignmentRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PartitionDirAssignmentRecord
Source§impl PartialEq for PartitionDirAssignmentRecord
impl PartialEq for PartitionDirAssignmentRecord
Source§fn eq(&self, other: &PartitionDirAssignmentRecord) -> bool
fn eq(&self, other: &PartitionDirAssignmentRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartitionDirAssignmentRecord
Auto Trait Implementations§
impl Freeze for PartitionDirAssignmentRecord
impl RefUnwindSafe for PartitionDirAssignmentRecord
impl Send for PartitionDirAssignmentRecord
impl Sync for PartitionDirAssignmentRecord
impl Unpin for PartitionDirAssignmentRecord
impl UnsafeUnpin for PartitionDirAssignmentRecord
impl UnwindSafe for PartitionDirAssignmentRecord
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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