[][src]Trait ostree::prelude::MutableTreeExt

pub trait MutableTreeExt: 'static {
    fn check_error(&self) -> Result<(), Error>;
fn ensure_dir(&self, name: &str) -> Result<MutableTree, Error>;
fn ensure_parent_dirs(
        &self,
        split_path: &[&str],
        metadata_checksum: &str
    ) -> Result<MutableTree, Error>;
fn fill_empty_from_dirtree(
        &self,
        repo: &Repo,
        contents_checksum: &str,
        metadata_checksum: &str
    ) -> bool;
fn get_contents_checksum(&self) -> Option<GString>;
fn get_metadata_checksum(&self) -> Option<GString>;
fn lookup(&self, name: &str) -> Result<(GString, MutableTree), Error>;
fn remove(&self, name: &str, allow_noent: bool) -> Result<(), Error>;
fn replace_file(&self, name: &str, checksum: &str) -> Result<(), Error>;
fn set_contents_checksum(&self, checksum: &str);
fn set_metadata_checksum(&self, checksum: &str);
fn walk(
        &self,
        split_path: &[&str],
        start: u32
    ) -> Result<MutableTree, Error>; }

Required methods

fn check_error(&self) -> Result<(), Error>

fn ensure_dir(&self, name: &str) -> Result<MutableTree, Error>

fn ensure_parent_dirs(
    &self,
    split_path: &[&str],
    metadata_checksum: &str
) -> Result<MutableTree, Error>

fn fill_empty_from_dirtree(
    &self,
    repo: &Repo,
    contents_checksum: &str,
    metadata_checksum: &str
) -> bool

fn get_contents_checksum(&self) -> Option<GString>

fn get_metadata_checksum(&self) -> Option<GString>

fn lookup(&self, name: &str) -> Result<(GString, MutableTree), Error>

fn remove(&self, name: &str, allow_noent: bool) -> Result<(), Error>

fn replace_file(&self, name: &str, checksum: &str) -> Result<(), Error>

fn set_contents_checksum(&self, checksum: &str)

fn set_metadata_checksum(&self, checksum: &str)

fn walk(&self, split_path: &[&str], start: u32) -> Result<MutableTree, Error>

Loading content...

Implementors

impl<O: IsA<MutableTree>> MutableTreeExt for O[src]

Loading content...