pub trait FormatPlugin: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn probe(&self, header: &[u8]) -> u8;
fn open(&self, path: &Path) -> Result<Box<dyn PhysicalMemoryProvider>>;
}Expand description
A plugin that can detect and open a specific dump format.
Required Methods§
Trait Implementations§
impl Collect for &'static dyn FormatPlugin
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".