pub struct PackInventory { /* private fields */ }Expand description
Owned disk-backed installed identities. The retained index survives removal of the transfer’s staging directory and is deleted when this value drops.
Implementations§
Source§impl PackInventory
impl PackInventory
pub fn copy_from_index( index_path: &Path, scratch_root: &Path, ) -> Result<PackInventory, HeddleError>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, id: &PackObjectId) -> Result<bool, HeddleError>
pub fn ids(&self) -> impl Iterator<Item = Result<PackObjectId, HeddleError>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PackInventory
impl RefUnwindSafe for PackInventory
impl Send for PackInventory
impl Sync for PackInventory
impl Unpin for PackInventory
impl UnsafeUnpin for PackInventory
impl UnwindSafe for PackInventory
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