pub struct RemoveRaftVoterOptions { /* private fields */ }Expand description
Options for removing a voter from the KRaft controller quorum.
Implementations§
Source§impl RemoveRaftVoterOptions
impl RemoveRaftVoterOptions
Sourcepub fn new(voter_id: i32, voter_directory_id: [u8; 16]) -> Self
pub fn new(voter_id: i32, voter_directory_id: [u8; 16]) -> Self
Creates options for a voter identified by broker ID and directory UUID.
Sourcepub fn cluster_id(self, cluster_id: impl Into<String>) -> Self
pub fn cluster_id(self, cluster_id: impl Into<String>) -> Self
Sets the expected Kafka cluster ID.
Sourcepub fn cluster_id_ref(&self) -> Option<&str>
pub fn cluster_id_ref(&self) -> Option<&str>
Returns the configured cluster ID.
Sourcepub fn voter_directory_id(&self) -> [u8; 16]
pub fn voter_directory_id(&self) -> [u8; 16]
Returns the voter directory UUID.
Trait Implementations§
Source§impl Clone for RemoveRaftVoterOptions
impl Clone for RemoveRaftVoterOptions
Source§fn clone(&self) -> RemoveRaftVoterOptions
fn clone(&self) -> RemoveRaftVoterOptions
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 RemoveRaftVoterOptions
impl Debug for RemoveRaftVoterOptions
impl Eq for RemoveRaftVoterOptions
Source§impl PartialEq for RemoveRaftVoterOptions
impl PartialEq for RemoveRaftVoterOptions
impl StructuralPartialEq for RemoveRaftVoterOptions
Auto Trait Implementations§
impl Freeze for RemoveRaftVoterOptions
impl RefUnwindSafe for RemoveRaftVoterOptions
impl Send for RemoveRaftVoterOptions
impl Sync for RemoveRaftVoterOptions
impl Unpin for RemoveRaftVoterOptions
impl UnsafeUnpin for RemoveRaftVoterOptions
impl UnwindSafe for RemoveRaftVoterOptions
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