Skip to main content

Filer

Trait Filer 

Source
pub trait Filer {
    const HEAD_DIR_PATH: &'static str = "/usr/local/var";
    const TAIL_DIR_PATH: &'static str = "keri";
    const CLEAN_TAIL_DIR_PATH: &'static str = "keri/clean";
    const ALT_TAIL_DIR_PATH: &'static str = ".keri";
    const ALT_CLEAN_TAIL_DIR_PATH: &'static str = ".keri/clean";
    const TEMP_PREFIX: &'static str = "keri_";
    const TEMP_HEAD_DIR: &'static str = "/tmp";
    const PERM: u32 = 0o1700;
    const MODE: &'static str = "r+";
    const FEXT: &'static str = "text";

    // Provided method
    fn defaults() -> FilerDefaults { ... }
}

Provided Associated Constants§

Source

const HEAD_DIR_PATH: &'static str = "/usr/local/var"

Default absolute directory path head such as “/usr/local/var”

Source

const TAIL_DIR_PATH: &'static str = "keri"

Default relative directory path tail when using head

Source

const CLEAN_TAIL_DIR_PATH: &'static str = "keri/clean"

Default relative directory path tail when creating clean

Source

const ALT_TAIL_DIR_PATH: &'static str = ".keri"

Default alternative relative directory path tail as fallback

Source

const ALT_CLEAN_TAIL_DIR_PATH: &'static str = ".keri/clean"

Default alternative relative path tail when creating clean

Source

const TEMP_PREFIX: &'static str = "keri_"

Default relative directory path prefix when using temp head

Source

const TEMP_HEAD_DIR: &'static str = "/tmp"

Default relative directory path prefix when using temp head

Source

const PERM: u32 = 0o1700

Explicit default octal permissions such as 0o1700

Source

const MODE: &'static str = "r+"

Open mode such as “r+”

Source

const FEXT: &'static str = "text"

Default file extension such as “text” for “fname.text”

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Filer for BaseFiler

Source§

impl Filer for Baser

Source§

const TAIL_DIR_PATH: &'static str = "keri/db"

Source§

const ALT_TAIL_DIR_PATH: &'static str = ".keri/db"

Source§

const TEMP_PREFIX: &'static str = "keri_db_"

Source§

impl Filer for Keeper

Source§

const TAIL_DIR_PATH: &'static str = "keri/ks"

Source§

const ALT_TAIL_DIR_PATH: &'static str = ".keri/ks"

Source§

const TEMP_PREFIX: &'static str = "keri_ks_"

Source§

impl Filer for LMDBer

Source§

const TAIL_DIR_PATH: &'static str = "keri/db"

Source§

const CLEAN_TAIL_DIR_PATH: &'static str = "keri/clean/db"

Source§

const ALT_TAIL_DIR_PATH: &'static str = ".keri/db"

Source§

const ALT_CLEAN_TAIL_DIR_PATH: &'static str = ".keri/clean/db"

Source§

const TEMP_PREFIX: &'static str = "keri_lmdb_"