pub struct ExtractorRegistry { /* private fields */ }Expand description
Ordered list of archive extractors.
ExtractorRegistry::default contains BuiltinExtractor. Use
ExtractorRegistry::with to try a custom extractor before the built-ins,
or ExtractorRegistry::new for an explicit list.
Implementations§
Source§impl ExtractorRegistry
impl ExtractorRegistry
Sourcepub fn new(extractors: Vec<Arc<dyn ArchiveExtractor>>) -> Self
pub fn new(extractors: Vec<Arc<dyn ArchiveExtractor>>) -> Self
Creates a registry containing exactly extractors, in order.
Sourcepub fn with(self, extractor: Arc<dyn ArchiveExtractor>) -> Self
pub fn with(self, extractor: Arc<dyn ArchiveExtractor>) -> Self
Prepends extractor so it is tried before the existing entries.
Trait Implementations§
Source§impl Clone for ExtractorRegistry
impl Clone for ExtractorRegistry
Auto Trait Implementations§
impl !RefUnwindSafe for ExtractorRegistry
impl !UnwindSafe for ExtractorRegistry
impl Forget for ExtractorRegistry
impl Freeze for ExtractorRegistry
impl Move for ExtractorRegistry
impl Send for ExtractorRegistry
impl Sync for ExtractorRegistry
impl Unpin for ExtractorRegistry
impl UnsafeUnpin for ExtractorRegistry
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