Struct raft_consensus::ClientId
[−]
[src]
pub struct ClientId(pub Uuid);
The ID of a Raft client.
Methods
impl ClientId
[src]
pub fn new() -> ClientId
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<ClientId, Error>
[src]
Trait Implementations
impl Copy for ClientId
[src]
impl Clone for ClientId
[src]
fn clone(&self) -> ClientId
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for ClientId
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ClientId
[src]
fn eq(&self, __arg_0: &ClientId) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ClientId) -> bool
[src]
This method tests for !=
.
impl Eq for ClientId
[src]
impl Debug for ClientId
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more