pub struct Directory { /* private fields */ }Expand description
Where every entry of a bundle is, read off the end of the file.
Implementations§
Source§impl Directory
impl Directory
Sourcepub fn front(&self) -> Result<Range<u64>, BundleError>
pub fn front(&self) -> Result<Range<u64>, BundleError>
The bytes that hold the head and the manifest: the two entries an install reads before it knows which blobs it wants.
Sourcepub fn open(&self, front: &[u8]) -> Result<Manifest, BundleError>
pub fn open(&self, front: &[u8]) -> Result<Manifest, BundleError>
The manifest, from front, the bytes of Directory::front. Makes
the promises crate::open_bundle makes: the head is in this
reader’s format, read before the manifest is, and every blob the
manifest names is in the bundle.
Trait Implementations§
impl Eq for Directory
impl StructuralPartialEq for Directory
Auto Trait Implementations§
impl Forget for Directory
impl Freeze for Directory
impl Move for Directory
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnsafeUnpin for Directory
impl UnwindSafe for Directory
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
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
Compare self to
key and return true if they are equal.