[][src]Type Definition libanu::change::Change3

type Change3 = LocalChange3<Local>;

Implementations

impl Change3[src]

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

impl Change3[src]

pub fn inverse(
    &self,
    hash: &Hash,
    header: ChangeHeader,
    metadata: Vec<u8>
) -> Self
[src]

impl Change3[src]

pub fn size_no_contents<R: Read + Seek>(r: &mut R) -> Result<u64, Error>[src]

pub fn serialize<W: Write>(&self, w: W) -> Result<Hash, Error>[src]

Serialise the change as a file named ".change" in directory dir, where "" is the actual hash of the change.

pub fn check_from_buffer(buf: &[u8], hash: &Hash) -> Result<(), Error>[src]

Deserialise a change from the file given as input file.

pub fn deserialize(file: &str, hash: Option<&Hash>) -> Result<Self, Error>[src]

Deserialise a change from the file given as input file.

pub fn hash(&self) -> Result<Hash, Error>[src]

Compute the hash of this change. If the zstd feature is enabled, it is probably more efficient to serialise the change (using the serialize method) at the same time, which also returns the hash.

impl Change3[src]

pub fn read<R: BufRead>(
    r: R,
    updatables: &mut HashMap<usize, InodeUpdate>
) -> Result<Self, Error>
[src]