pub struct ServiceIsEnabled { /* private fields */ }Expand description
Checks if service is enabled
Implementations§
Trait Implementations§
Source§impl Check for ServiceIsEnabled
impl Check for ServiceIsEnabled
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 ServiceIsEnabled
impl RefUnwindSafe for ServiceIsEnabled
impl Send for ServiceIsEnabled
impl Sync for ServiceIsEnabled
impl Unpin for ServiceIsEnabled
impl UnwindSafe for ServiceIsEnabled
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