pub enum WorkerTierRole {
Server,
Worker,
}Expand description
What role this node plays in a worker-tier cluster.
Variants§
Server
Participates in raft consensus + serves the worker gRPC.
Worker
gRPC client to the control plane; never enters consensus.
Trait Implementations§
Source§impl Clone for WorkerTierRole
impl Clone for WorkerTierRole
Source§fn clone(&self) -> WorkerTierRole
fn clone(&self) -> WorkerTierRole
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 moreimpl Copy for WorkerTierRole
Source§impl Debug for WorkerTierRole
impl Debug for WorkerTierRole
Source§impl<'de> Deserialize<'de> for WorkerTierRole
impl<'de> Deserialize<'de> for WorkerTierRole
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 WorkerTierRole
Source§impl PartialEq for WorkerTierRole
impl PartialEq for WorkerTierRole
Source§fn eq(&self, other: &WorkerTierRole) -> bool
fn eq(&self, other: &WorkerTierRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkerTierRole
impl Serialize for WorkerTierRole
impl StructuralPartialEq for WorkerTierRole
Auto Trait Implementations§
impl Freeze for WorkerTierRole
impl RefUnwindSafe for WorkerTierRole
impl Send for WorkerTierRole
impl Sync for WorkerTierRole
impl Unpin for WorkerTierRole
impl UnsafeUnpin for WorkerTierRole
impl UnwindSafe for WorkerTierRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.