#[non_exhaustive]pub struct ExtractorRequest<'a> {
pub path: &'a Path,
pub extract_root: &'a Path,
pub overwrite: bool,
}Expand description
Read-only inputs supplied to an ArchiveExtractor.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: &'a PathArchive file to read.
extract_root: &'a PathDirectory the extractor may write into. Writes outside this directory are rejected by the registry after extraction, and are a contract violation for the implementation.
overwrite: boolWhether an existing extraction target may be replaced.
Implementations§
Auto Trait Implementations§
impl<'a> Forget for ExtractorRequest<'a>
impl<'a> Freeze for ExtractorRequest<'a>
impl<'a> Move for ExtractorRequest<'a>
impl<'a> RefUnwindSafe for ExtractorRequest<'a>
impl<'a> Send for ExtractorRequest<'a>
impl<'a> Sync for ExtractorRequest<'a>
impl<'a> Unpin for ExtractorRequest<'a>
impl<'a> UnsafeUnpin for ExtractorRequest<'a>
impl<'a> UnwindSafe for ExtractorRequest<'a>
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