pub struct FunctionalProbe {
pub name: String,
pub command: String,
pub layer: ProbeLayer,
pub expected_exit: Option<i32>,
}Expand description
A single probe to run + cite in evidence.
Fields§
§name: StringHuman-readable name (e.g., “nginx default 404”).
command: StringShell command (executed via sh -c <command> so shell features work).
layer: ProbeLayerWhich evidence layer this probe belongs to. Defaults to functional.
expected_exit: Option<i32>Expected exit code (None to accept any).
Trait Implementations§
Source§impl Clone for FunctionalProbe
impl Clone for FunctionalProbe
Source§fn clone(&self) -> FunctionalProbe
fn clone(&self) -> FunctionalProbe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionalProbe
impl Debug for FunctionalProbe
Source§impl<'de> Deserialize<'de> for FunctionalProbe
impl<'de> Deserialize<'de> for FunctionalProbe
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
Auto Trait Implementations§
impl Freeze for FunctionalProbe
impl RefUnwindSafe for FunctionalProbe
impl Send for FunctionalProbe
impl Sync for FunctionalProbe
impl Unpin for FunctionalProbe
impl UnsafeUnpin for FunctionalProbe
impl UnwindSafe for FunctionalProbe
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