EraMeta

Trait EraMeta 

Source
pub trait EraMeta: Debug {
    // Required methods
    fn mark_as_processed(&self) -> Result<()>;
    fn path(&self) -> &Path;
}
Expand description

Contains information about an ERA file.

Required Methods§

Source

fn mark_as_processed(&self) -> Result<()>

Marking this particular ERA file as “processed” lets the caller hint that it is no longer going to be using it.

The meaning of that is up to the implementation. The caller should assume that after this point is no longer possible to safely read it.

Source

fn path(&self) -> &Path

A path to the era file.

File should be openable and treated as read-only.

Implementations on Foreign Types§

Source§

impl<T: EraMeta> EraMeta for Box<T>

Implementors§