[][src]Struct feattle::Disk

pub struct Disk { /* fields omitted */ }

Persist the data in the local filesystem, under a given directory.

At every save action, if the directory does not exist, it will be created.

Example

use feattle_core::{feattles, Feattles};
use feattle_sync::Disk;

feattles! {
    struct MyToggles {
        a: bool,
    }
}

let my_toggles = MyToggles::new(Disk::new("some/local/directory"));

Implementations

impl Disk[src]

pub fn new<P>(dir: P) -> Disk where
    P: Into<PathBuf>, 
[src]

Trait Implementations

impl Clone for Disk[src]

impl Debug for Disk[src]

impl Persist for Disk[src]

type Error = Error

Auto Trait Implementations

impl RefUnwindSafe for Disk

impl Send for Disk

impl Sync for Disk

impl Unpin for Disk

impl UnwindSafe for Disk

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.