pub enum NatsRole {
Agent,
Backend,
Cli,
}Expand description
Which kanade binary is opening the connection.
Named on every call rather than inferred, because the broker’s view of a connection comes entirely from the credential it presents: a caller that picks the wrong role does not get a warning, it gets someone else’s permissions.
Variants§
Agent
The endpoint agent. The most numerous and least trusted role — one compromised endpoint holds this credential.
Backend
The backend. The only role that needs to see the whole fleet.
Cli
The operator CLI, including the backend-down recovery path that drives agents over NATS directly.
Implementations§
Trait Implementations§
impl Copy for NatsRole
impl Eq for NatsRole
impl StructuralPartialEq for NatsRole
Auto Trait Implementations§
impl Freeze for NatsRole
impl RefUnwindSafe for NatsRole
impl Send for NatsRole
impl Sync for NatsRole
impl Unpin for NatsRole
impl UnsafeUnpin for NatsRole
impl UnwindSafe for NatsRole
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.