PartitionManager

Trait PartitionManager 

pub trait PartitionManager {
    type Reader: Read;

    // Required methods
    fn reader(&self) -> Result<Self::Reader>;
    fn update(&mut self, image: impl Read, size: usize) -> Result<()>;
    fn block_size(&self) -> usize;
    fn should_cache(&self) -> bool;
}

Required Associated Types§

type Reader: Read

Required Methods§

fn reader(&self) -> Result<Self::Reader>

fn update(&mut self, image: impl Read, size: usize) -> Result<()>

fn block_size(&self) -> usize

fn should_cache(&self) -> bool

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.

Implementors§