pub enum ProbeKind {
SystemdActive,
Tcp {
addr: String,
},
Http {
url: String,
status: u16,
},
DBus {
service: String,
path: String,
method: String,
},
FilePresent {
path: String,
},
Exec {
argv: Vec<String>,
sandbox: ProbeSandbox,
},
FreeSpace {
path: String,
min_bytes: u64,
min_permille: u16,
},
SessionTarget {
target: String,
within: Millis,
},
}Variants§
SystemdActive
Tcp
Http
DBus
FilePresent
Exec
Administrator-authored manifest entries only; flagged in the console and journal (§9).
FreeSpace
Free space on the filesystem holding path: at least min_bytes and at
least min_permille of its size (§10 storage units). Not in §8.
SessionTarget
A systemd target in the user’s session reached within within of that
session’s creation (§9 graphical-session). Evaluated by state from logind
and systemd together; bound to one session id (§10). Not in §8.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProbeKind
impl<'de> Deserialize<'de> for ProbeKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProbeKind
impl StructuralPartialEq for ProbeKind
Auto Trait Implementations§
impl Freeze for ProbeKind
impl RefUnwindSafe for ProbeKind
impl Send for ProbeKind
impl Sync for ProbeKind
impl Unpin for ProbeKind
impl UnsafeUnpin for ProbeKind
impl UnwindSafe for ProbeKind
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