pub struct VoterEndpoint {
pub name: String,
pub host: String,
pub port: u16,
}Expand description
A single listener endpoint advertised by a voter.
Fields§
§name: String§host: String§port: u16Trait Implementations§
Source§impl Clone for VoterEndpoint
impl Clone for VoterEndpoint
Source§fn clone(&self) -> VoterEndpoint
fn clone(&self) -> VoterEndpoint
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 VoterEndpoint
impl Debug for VoterEndpoint
Source§impl<'de> Deserialize<'de> for VoterEndpoint
impl<'de> Deserialize<'de> for VoterEndpoint
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 VoterEndpoint
Source§impl Hash for VoterEndpoint
impl Hash for VoterEndpoint
Source§impl PartialEq for VoterEndpoint
impl PartialEq for VoterEndpoint
Source§fn eq(&self, other: &VoterEndpoint) -> bool
fn eq(&self, other: &VoterEndpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VoterEndpoint
impl Serialize for VoterEndpoint
impl StructuralPartialEq for VoterEndpoint
Auto Trait Implementations§
impl Freeze for VoterEndpoint
impl RefUnwindSafe for VoterEndpoint
impl Send for VoterEndpoint
impl Sync for VoterEndpoint
impl Unpin for VoterEndpoint
impl UnsafeUnpin for VoterEndpoint
impl UnwindSafe for VoterEndpoint
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