Xs

Trait Xs 

Source
pub trait Xs {
    // Required methods
    fn directory(&self, path: &str) -> Result<Vec<Box<str>>>;
    fn read(&self, path: &str) -> Result<Box<str>>;
    fn write(&self, path: &str, data: &str) -> Result<()>;
    fn rm(&self, path: &str) -> Result<()>;
}
Expand description

Xenstore base trait. All xenstore implementations must implement this trait.

Required Methods§

Source

fn directory(&self, path: &str) -> Result<Vec<Box<str>>>

Try to list the files of a directory.

Source

fn read(&self, path: &str) -> Result<Box<str>>

Read a node.

Source

fn write(&self, path: &str, data: &str) -> Result<()>

Write a node.

Source

fn rm(&self, path: &str) -> Result<()>

Remove a node.

Implementors§