pub struct VotersRecordData {
pub version: i16,
pub voters: Vec<Voter>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§version: i16The version of the voters record.
voters: Vec<Voter>The set of voters in the quorum for this epoch.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl VotersRecordData
impl VotersRecordData
pub fn with_version(self, value: i16) -> Self
pub fn with_voters(self, value: Vec<Voter>) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for VotersRecordData
impl Clone for VotersRecordData
Source§fn clone(&self) -> VotersRecordData
fn clone(&self) -> VotersRecordData
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 VotersRecordData
impl Debug for VotersRecordData
Source§impl Default for VotersRecordData
impl Default for VotersRecordData
Source§impl PartialEq for VotersRecordData
impl PartialEq for VotersRecordData
Source§fn eq(&self, other: &VotersRecordData) -> bool
fn eq(&self, other: &VotersRecordData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VotersRecordData
Auto Trait Implementations§
impl Freeze for VotersRecordData
impl RefUnwindSafe for VotersRecordData
impl Send for VotersRecordData
impl Sync for VotersRecordData
impl Unpin for VotersRecordData
impl UnsafeUnpin for VotersRecordData
impl UnwindSafe for VotersRecordData
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