#[non_exhaustive]pub struct Probe {
pub agent: Agent,
pub bin: String,
pub reported: String,
pub version: Option<Version>,
pub verified: Version,
pub status: VersionStatus,
}Expand description
What an installed agent CLI reported about itself.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.agent: AgentThe agent probed.
bin: StringThe binary that answered.
reported: StringIts --version output, trimmed.
version: Option<Version>The version read out of that output, if one could be.
verified: VersionThe release this crate’s mappings were verified against.
status: VersionStatusHow the two relate.
Implementations§
Source§impl Probe
impl Probe
Sourcepub async fn run(agent: Agent) -> Result<Probe>
pub async fn run(agent: Agent) -> Result<Probe>
Ask agent’s default binary for its version.
§Errors
Error::NotInstalled if the binary is missing, Error::Spawn if it
cannot be run.
Sourcepub async fn run_bin(agent: Agent, bin: &str) -> Result<Probe>
pub async fn run_bin(agent: Agent, bin: &str) -> Result<Probe>
Ask a specific binary for its version, for a caller that overrides the
path with crate::Request::bin.
§Errors
Error::NotInstalled if the binary is missing, Error::Spawn if it
cannot be run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Probe
impl RefUnwindSafe for Probe
impl Send for Probe
impl Sync for Probe
impl Unpin for Probe
impl UnsafeUnpin for Probe
impl UnwindSafe for Probe
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