pub struct TkaStatus {
pub head: String,
pub disabled: bool,
}Expand description
The control plane’s view of this tailnet’s Tailnet Lock state (Go tailcfg.TKAInfo).
Fields§
§head: StringThe base32 (no-pad) AUMHash of the latest Authority Update Message control has applied. A
node whose locally-known head differs should resync the authority. Empty when control sends
no head.
disabled: boolWhether control believes Tailnet Lock should be disabled (the node should fetch and verify a disablement secret before disabling locally).
Implementations§
Source§impl TkaStatus
impl TkaStatus
Sourcepub fn from_serde(info: &TkaInfo<'_>) -> Self
pub fn from_serde(info: &TkaInfo<'_>) -> Self
Build the owned status from the borrowed serde view parsed off the netmap.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Whether Tailnet Lock is in effect for this tailnet: a non-empty head and not disabled.
Trait Implementations§
impl Eq for TkaStatus
impl StructuralPartialEq for TkaStatus
Auto Trait Implementations§
impl Freeze for TkaStatus
impl RefUnwindSafe for TkaStatus
impl Send for TkaStatus
impl Sync for TkaStatus
impl Unpin for TkaStatus
impl UnsafeUnpin for TkaStatus
impl UnwindSafe for TkaStatus
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,
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.