pub struct CachedTool {
pub path: PathBuf,
pub saved_at: DateTime<Utc>,
pub usable: bool,
}Expand description
A saved tool path that a lookup tried after PATH had no such tool.
Fields§
§path: PathBuf§saved_at: DateTime<Utc>When the cache file was saved; the tool was found then or later.
usable: boolWhether the file still exists and is executable, so it was used.
Trait Implementations§
Source§impl Clone for CachedTool
impl Clone for CachedTool
Source§impl Debug for CachedTool
impl Debug for CachedTool
Source§impl<'de> Deserialize<'de> for CachedTool
impl<'de> Deserialize<'de> for CachedTool
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 CachedTool
Source§impl PartialEq for CachedTool
impl PartialEq for CachedTool
Source§impl Serialize for CachedTool
impl Serialize for CachedTool
impl StructuralPartialEq for CachedTool
Auto Trait Implementations§
impl Forget for CachedTool
impl Freeze for CachedTool
impl Move for CachedTool
impl RefUnwindSafe for CachedTool
impl Send for CachedTool
impl Sync for CachedTool
impl Unpin for CachedTool
impl UnsafeUnpin for CachedTool
impl UnwindSafe for CachedTool
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