pub struct ArchivePlan { /* private fields */ }Expand description
A validated declaration for one local archive extraction.
Implementations§
Source§impl ArchivePlan
impl ArchivePlan
Sourcepub fn new(
archive_path: impl Into<PathBuf>,
format: ArchiveFormat,
members: Vec<ArchiveMember>,
limits: ArchiveLimits,
) -> Result<Self, ExtractionError>
pub fn new( archive_path: impl Into<PathBuf>, format: ArchiveFormat, members: Vec<ArchiveMember>, limits: ArchiveLimits, ) -> Result<Self, ExtractionError>
Creates a plan for an archive whose integrity/authenticity decisions are already complete in the caller’s policy layer.
Trait Implementations§
Source§impl Clone for ArchivePlan
impl Clone for ArchivePlan
Auto Trait Implementations§
impl Freeze for ArchivePlan
impl RefUnwindSafe for ArchivePlan
impl Send for ArchivePlan
impl Sync for ArchivePlan
impl Unpin for ArchivePlan
impl UnsafeUnpin for ArchivePlan
impl UnwindSafe for ArchivePlan
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