pub struct VersionSpec<'a> {
pub executable: &'a Path,
pub executable_bytes: u64,
pub version_arguments: &'a [OsString],
pub version_identity: &'a str,
}Expand description
Exact version authority for a caller-trusted installed executable.
Unlike ToolSpec, this supplies no trusted executable digest. Admission
records the installed bytes for later drift checks; a matching version is
not authentication of those bytes. Consumers own installation provenance.
Fields§
§executable: &'a PathAbsolute path in a caller-controlled filesystem; no PATH search occurs.
executable_bytes: u64Maximum executable bytes read during admission and every later run.
version_arguments: &'a [OsString]Exact argument vector used to observe version identity.
version_identity: &'a strRequired UTF-8 stdout after Unicode whitespace is trimmed at both ends.
Auto Trait Implementations§
impl<'a> Freeze for VersionSpec<'a>
impl<'a> RefUnwindSafe for VersionSpec<'a>
impl<'a> Send for VersionSpec<'a>
impl<'a> Sync for VersionSpec<'a>
impl<'a> Unpin for VersionSpec<'a>
impl<'a> UnsafeUnpin for VersionSpec<'a>
impl<'a> UnwindSafe for VersionSpec<'a>
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