pub struct LocalDirSource { /* private fields */ }Expand description
A BundleSource that reads a bundle from a directory tree on disk.
One LocalDirSource wraps ONE bundle root = one bundle@version (D-08); the
member name is joined onto the root to read bytes. list_artifacts walks
the tree recursively and returns sorted bundle-relative paths.
Implementations§
Trait Implementations§
Source§impl BundleSource for LocalDirSource
impl BundleSource for LocalDirSource
Source§fn read_artifact(&self, name: &str) -> Result<Vec<u8>, BundleSourceError>
fn read_artifact(&self, name: &str) -> Result<Vec<u8>, BundleSourceError>
Return the EXACT bytes of the member named
name (a bundle-relative
path such as "manifest.json" or "evidence/changelog.json"). Read moreSource§fn list_artifacts(&self) -> Result<Vec<String>, BundleSourceError>
fn list_artifacts(&self) -> Result<Vec<String>, BundleSourceError>
Return the SORTED list of every member’s bundle-relative path
(including nested members like
"evidence/changelog.json"). Read moreSource§impl Clone for LocalDirSource
impl Clone for LocalDirSource
Source§fn clone(&self) -> LocalDirSource
fn clone(&self) -> LocalDirSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LocalDirSource
impl RefUnwindSafe for LocalDirSource
impl Send for LocalDirSource
impl Sync for LocalDirSource
impl Unpin for LocalDirSource
impl UnsafeUnpin for LocalDirSource
impl UnwindSafe for LocalDirSource
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