pub struct RarFilesPackage { /* private fields */ }Available on crate feature
async only.Expand description
Multi-volume RAR archive parser.
Implementations§
Source§impl RarFilesPackage
impl RarFilesPackage
Sourcepub fn new(files: Vec<Arc<dyn FileMedia>>) -> Self
pub fn new(files: Vec<Arc<dyn FileMedia>>) -> Self
Create a new RarFilesPackage from a list of volume files.
Volumes are automatically sorted into the correct order
(.rar first, then .r00, .r01, etc.).
Sourcepub async fn get_archive_info(&self) -> Result<ArchiveInfo>
pub async fn get_archive_info(&self) -> Result<ArchiveInfo>
Get archive metadata from the first volume.
This performs a single I/O read to fetch all headers needed for metadata.
Auto Trait Implementations§
impl Freeze for RarFilesPackage
impl !RefUnwindSafe for RarFilesPackage
impl Send for RarFilesPackage
impl Sync for RarFilesPackage
impl Unpin for RarFilesPackage
impl UnsafeUnpin for RarFilesPackage
impl !UnwindSafe for RarFilesPackage
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