Skip to main content

Runtime

Trait Runtime 

Source
pub trait Runtime: Send + Sync {
    // Required methods
    fn now_unix_seconds(&self) -> i64;
    fn next_inode_generation(&self) -> u32;
}

Required Methods§

Source

fn now_unix_seconds(&self) -> i64

Seconds since the Unix epoch, signed and 64-bit: ext4 stores times past 2038 (to 2446) by extending the 32-bit base with the epoch bits of each *_extra field, so a u32 cannot carry them.

Source

fn next_inode_generation(&self) -> u32

New inode generation; implementations must avoid immediate reuse.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§