Trait Meta

Source
pub trait Meta {
    // Required methods
    fn modified(&mut self) -> Option<SystemTime>;
    fn len(&self) -> u64;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

trait for generic over file metadata.

Required Methods§

Source

fn modified(&mut self) -> Option<SystemTime>

the last time when file is modified. optional

Source

fn len(&self) -> u64

the length hint of file.

Provided Methods§

Source

fn is_empty(&self) -> bool

Implementors§