FileInfoExt

Trait FileInfoExt 

Source
pub trait FileInfoExt {
    // Required methods
    fn get_width_min(&self) -> Option<u64>;
    fn get_max_size(&self) -> Option<u64>;
    fn get_max_number(&self) -> Option<usize>;
    fn get_max_dimension(&self) -> Option<u64>;
    fn sizes_are_valid(&self, config: &Config) -> bool;
    fn update_number(&mut self);
    fn update_hash(&mut self) -> WallSwitchResult<()>;
}
Expand description

FileInfo Extension

Required Methods§

Implementations on Foreign Types§

Source§

impl FileInfoExt for [FileInfo]

Source§

fn update_number(&mut self)

Update FileInfo number field

Source§

fn update_hash(&mut self) -> WallSwitchResult<()>

Update FileInfo hash field

Source§

fn get_width_min(&self) -> Option<u64>

Source§

fn get_max_size(&self) -> Option<u64>

Source§

fn get_max_number(&self) -> Option<usize>

Source§

fn get_max_dimension(&self) -> Option<u64>

Source§

fn sizes_are_valid(&self, config: &Config) -> bool

Implementors§