[][src]Struct libpijul::changestore::filesystem::FileSystem

pub struct FileSystem(_);

A file system change store.

Implementations

impl FileSystem[src]

pub fn filename(&self, hash: &Hash) -> PathBuf[src]

pub fn has_change(&self, hash: &Hash) -> bool[src]

pub fn from_root<P: AsRef<Path>>(root: P) -> Self[src]

Construct a FileSystem, starting from the root of the repository (i.e. the parent of the .pijul directory).

pub fn from_changes(changes_dir: PathBuf) -> Self[src]

Construct a FileSystem, starting from the root of the repository (i.e. the parent of the .pijul directory).

pub fn save_from_buf(
    &self,
    buf: &[u8],
    hash: &Hash,
    change_id: Option<ChangeId>
) -> Result<(), Error>
[src]

pub fn save_from_buf_unchecked(
    &self,
    buf: &[u8],
    hash: &Hash,
    change_id: Option<ChangeId>
) -> Result<(), Error>
[src]

Trait Implementations

impl ChangeStore for FileSystem[src]

impl Clone for FileSystem[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,