pub struct VaultState {
pub cert_cache: HashMap<String, (Instant, CertStatus, Option<SystemTime>)>,
pub cert_checks_in_flight: HashSet<String>,
pub cleanup_warning: Option<String>,
pub signing_cancel: Option<Arc<AtomicBool>>,
pub sign_thread: Option<JoinHandle<()>>,
pub sign_in_flight: Arc<Mutex<HashSet<String>>>,
pub pending_config_write: bool,
}Expand description
Vault SSH certificate and signing state.
Fields§
§cert_cache: HashMap<String, (Instant, CertStatus, Option<SystemTime>)>Cached vault certificate status per host alias. Tuple: (check timestamp, status, cert file mtime at check time).
cert_checks_in_flight: HashSet<String>Aliases currently being checked for cert status (prevent duplicate checks).
cleanup_warning: Option<String>Side-channel warning from cert-cache cleanup.
signing_cancel: Option<Arc<AtomicBool>>Cancel flag for the V-key vault signing background thread.
sign_thread: Option<JoinHandle<()>>JoinHandle for the V-key vault signing background thread.
sign_in_flight: Arc<Mutex<HashSet<String>>>Aliases currently being signed by the bulk V-key loop.
pending_config_write: boolDeferred config write from VaultSignAllDone (guarded while forms are open).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VaultState
impl !RefUnwindSafe for VaultState
impl Send for VaultState
impl Sync for VaultState
impl Unpin for VaultState
impl UnsafeUnpin for VaultState
impl !UnwindSafe for VaultState
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more