pub struct ServiceInStatus { /* private fields */ }Expand description
Checks if service has provided status
Implementations§
Source§impl ServiceInStatus
impl ServiceInStatus
pub fn new(service: String, status: ServiceStatus) -> Self
Trait Implementations§
Source§impl Check for ServiceInStatus
impl Check for ServiceInStatus
Source§fn yes(&self) -> bool
fn yes(&self) -> bool
Performs check and returns true in case of success, false - if check
negative or failed (eg. have not enough permission to perform check).
Returned true value here is “stronger”, for example if file checked
for some content, it possible file contains it, but check returns
false if not enough permission. Because of that there is no point in
negating check, for example it is incorrect to use
not(is_dir) need to
use path_is_missing.fn into_check(self) -> Box<dyn Check>
Auto Trait Implementations§
impl Freeze for ServiceInStatus
impl RefUnwindSafe for ServiceInStatus
impl Send for ServiceInStatus
impl Sync for ServiceInStatus
impl Unpin for ServiceInStatus
impl UnwindSafe for ServiceInStatus
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