pub struct ServiceChecks { /* private fields */ }Implementations§
Source§impl ServiceChecks
impl ServiceChecks
pub fn new(host_executor: HostNamespaceExecutor) -> Self
Sourcepub async fn run_all(&self) -> CheckGroupResult
pub async fn run_all(&self) -> CheckGroupResult
Run all the recorders asynchronously, then join and collect the results.
Sourcepub async fn check_daemon(&self) -> CheckResult
pub async fn check_daemon(&self) -> CheckResult
Checks that the protect-daemon service is active.
Manual equivalent:
systemctl is-active protect-daemon
# or on OpenRC: rc-service protect-daemon statusSourcepub async fn check_storage(&self) -> CheckResult
pub async fn check_storage(&self) -> CheckResult
Checks that the protect-storage service is active.
Manual equivalent:
systemctl is-active protect-storage
# or on OpenRC: rc-service protect-storage statusSourcepub async fn check_network(&self) -> CheckResult
pub async fn check_network(&self) -> CheckResult
Checks that the protect-network service is active.
Manual equivalent:
systemctl is-active protect-network
# or on OpenRC: rc-service protect-network statusAuto Trait Implementations§
impl Freeze for ServiceChecks
impl RefUnwindSafe for ServiceChecks
impl Send for ServiceChecks
impl Sync for ServiceChecks
impl Unpin for ServiceChecks
impl UnsafeUnpin for ServiceChecks
impl UnwindSafe for ServiceChecks
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