agde::fast_forward

Struct ResourceMeta

source
pub struct ResourceMeta { /* private fields */ }
Expand description

The metadata of a resource.

Implementations§

source§

impl ResourceMeta

source

pub fn new(mtime_in_current: Option<SystemTime>, size: u64) -> Self

size is the length of the data.

§mtime_in_current

mtime_in_current is the modify time of the resource in the current storage.

Is None if this resource has not yet been written to the current storage. In that case, there’s always a change. This can occur when data has been written to the public storage, and the current storage hasn’t gotten that data yet.