pub struct Record {
pub written: BTreeMap<Utf8PathBuf, Digest>,
}Expand description
The digests this tool last wrote to user-scope skill destinations.
Fields§
§written: BTreeMap<Utf8PathBuf, Digest>Destination path to the digest written there.
Implementations§
Source§impl Record
impl Record
Sourcepub fn load(path: &Utf8Path) -> Self
pub fn load(path: &Utf8Path) -> Self
Read the record at path, or an empty one.
Every failure resolves to an empty record: absent, unreadable,
malformed, and written under a header this binary does not know all
mean the same thing to a caller — nothing here can vouch for a
destination. Refusing instead would let a corrupt state file block an
install that has a --force it does not need.
Trait Implementations§
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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