#[non_exhaustive]pub struct Voter {
pub voter_id: BrokerId,
pub voter_directory_id: Uuid,
pub endpoints: Vec<Endpoint>,
pub k_raft_version_feature: KRaftVersionFeature,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}Expand description
Valid versions: 0
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.voter_id: BrokerIdThe replica id of the voter in the topic partition
Supported API versions: 0
voter_directory_id: UuidThe directory id of the voter in the topic partition
Supported API versions: 0
endpoints: Vec<Endpoint>The endpoint that can be used to communicate with the voter
Supported API versions: 0
k_raft_version_feature: KRaftVersionFeatureThe range of versions of the protocol that the replica supports
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
source§impl Voter
impl Voter
sourcepub fn with_voter_id(self, value: BrokerId) -> Self
pub fn with_voter_id(self, value: BrokerId) -> Self
Sets voter_id to the passed value.
The replica id of the voter in the topic partition
Supported API versions: 0
sourcepub fn with_voter_directory_id(self, value: Uuid) -> Self
pub fn with_voter_directory_id(self, value: Uuid) -> Self
Sets voter_directory_id to the passed value.
The directory id of the voter in the topic partition
Supported API versions: 0
sourcepub fn with_endpoints(self, value: Vec<Endpoint>) -> Self
pub fn with_endpoints(self, value: Vec<Endpoint>) -> Self
Sets endpoints to the passed value.
The endpoint that can be used to communicate with the voter
Supported API versions: 0
sourcepub fn with_k_raft_version_feature(self, value: KRaftVersionFeature) -> Self
pub fn with_k_raft_version_feature(self, value: KRaftVersionFeature) -> Self
Sets k_raft_version_feature to the passed value.
The range of versions of the protocol that the replica supports
Supported API versions: 0
sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
source§impl Message for Voter
impl Message for Voter
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
impl StructuralPartialEq for Voter
Auto Trait Implementations§
impl Freeze for Voter
impl RefUnwindSafe for Voter
impl Send for Voter
impl Sync for Voter
impl Unpin for Voter
impl UnwindSafe for Voter
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)