pub trait AnyWalker: Sized {
// Required method
fn visit_file_entry(
&mut self,
entry: &mut FileEntry<impl Read>,
) -> Result<(), Error>;
// Provided methods
fn begin_visit_archive(
&mut self,
details: &EntryDetails,
format: FormatKind,
) -> Result<bool, Error> { ... }
fn end_visit_archive(
&mut self,
details: EntryDetails,
format: FormatKind,
) -> Result<(), Error> { ... }
fn walk(&mut self, entry: FileEntry<impl Read>) -> Result<(), Error> { ... }
}
Required Methods§
Provided Methods§
fn begin_visit_archive( &mut self, details: &EntryDetails, format: FormatKind, ) -> Result<bool, Error>
fn end_visit_archive( &mut self, details: EntryDetails, format: FormatKind, ) -> Result<(), Error>
fn walk(&mut self, entry: FileEntry<impl Read>) -> Result<(), Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.