Struct libpijul::changestore::filesystem::FileSystem [−][src]
pub struct FileSystem { /* fields omitted */ }
Expand description
A file system change store.
Implementations
Construct a FileSystem
, starting from the root of the
repository (i.e. the parent of the .pijul
directory).
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<(), ChangeError>
Trait Implementations
fn get_contents<F: Fn(ChangeId) -> Option<Hash>>(
&self,
hash: F,
key: Vertex<ChangeId>,
buf: &mut Vec<u8>
) -> Result<usize, Self::Error>
fn get_contents_ext(
&self,
key: Vertex<Option<Hash>>,
buf: &mut Vec<u8>
) -> Result<usize, Self::Error>
fn change_deletes_position<F: Fn(ChangeId) -> Option<Hash>>(
&self,
hash: F,
change: ChangeId,
pos: Position<Option<Hash>>
) -> Result<Vec<Hash>, Self::Error>
Auto Trait Implementations
impl !RefUnwindSafe for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl !UnwindSafe for FileSystem
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self