pub enum VersionProbe {
Reported(String),
Refused(String),
NotAsked,
}Expand description
What a version probe produced, and whether it can be believed.
Three answers rather than an Option, because “it refused to say” and “it
said something that cannot be a version” send a reader to different
problems, and the second used to be recorded as though it were the first.
Variants§
Reported(String)
It answered, and the answer can be a version.
Refused(String)
It answered, and the answer cannot be recorded as a version. The string is a short reason that names what the tool actually printed.
NotAsked
It could not be asked at all: no binary, not on PATH, no answer inside the deadline.
Implementations§
Source§impl VersionProbe
impl VersionProbe
Sourcepub fn pin_label(&self) -> &str
pub fn pin_label(&self) -> &str
The short string that goes in front of the hash in a presence pin.
Kept under forty characters because doctor renders it in a column,
and it carries a digit wherever the tool’s own answer did, so the
renderer prints it rather than collapsing it to “probe failed”.
Trait Implementations§
Source§impl Clone for VersionProbe
impl Clone for VersionProbe
Source§impl Debug for VersionProbe
impl Debug for VersionProbe
impl Eq for VersionProbe
Source§impl PartialEq for VersionProbe
impl PartialEq for VersionProbe
impl StructuralPartialEq for VersionProbe
Auto Trait Implementations§
impl Freeze for VersionProbe
impl RefUnwindSafe for VersionProbe
impl Send for VersionProbe
impl Sync for VersionProbe
impl Unpin for VersionProbe
impl UnsafeUnpin for VersionProbe
impl UnwindSafe for VersionProbe
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.