pub enum ArchiveQueryResult {
FileData(Vec<u8>),
Entries(Vec<ArchiveEntry>),
Names(Vec<String>),
NotFound,
}Expand description
Polymorphic result of get_file_from_archive.
file = Some(name)→FileData(orNotFound)file = None, include_dirs = true→Entrieswith full metadatafile = None, include_dirs = false→Namesof file entries only
When prefix is provided it filters by entry name prefix in all list modes.
Variants§
FileData(Vec<u8>)
Raw bytes of the requested file.
Entries(Vec<ArchiveEntry>)
Full entry listing (includes directories when include_dirs = true).
Names(Vec<String>)
Entry names only (file-only when include_dirs = false).
NotFound
The requested file was not found.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArchiveQueryResult
impl RefUnwindSafe for ArchiveQueryResult
impl Send for ArchiveQueryResult
impl Sync for ArchiveQueryResult
impl Unpin for ArchiveQueryResult
impl UnsafeUnpin for ArchiveQueryResult
impl UnwindSafe for ArchiveQueryResult
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