Struct docker_archive::FileTree
source · [−]pub struct FileTree {
pub root: Rc<RefCell<FileNode>>,
pub size: u64,
pub file_size: u64,
pub name: String,
pub id: Uuid,
}Fields
root: Rc<RefCell<FileNode>>size: u64file_size: u64name: Stringid: UuidImplementations
sourceimpl FileTree
impl FileTree
pub fn search<E>(
tree: Rc<RefCell<Self>>,
evaluator: &E
) -> Vec<Rc<RefCell<FileNode>>> where
E: Fn(&FileNode) -> bool,
pub fn copy(tree: Rc<RefCell<Self>>) -> Rc<RefCell<Self>>
pub fn stack_trees(trees: Vec<Rc<RefCell<FileTree>>>) -> Rc<RefCell<FileTree>>
pub fn stack(lower: Rc<RefCell<Self>>, upper: Rc<RefCell<Self>>)
pub fn compare_mark(lower: Rc<RefCell<Self>>, upper: Rc<RefCell<Self>>)
pub fn get_node(
tree: Rc<RefCell<Self>>,
path: &str
) -> Option<Rc<RefCell<FileNode>>>
pub fn add_path(
tree: Rc<RefCell<Self>>,
path: &str,
data: FileInfo
) -> (Option<Rc<RefCell<FileNode>>>, Vec<Rc<RefCell<FileNode>>>)
pub fn remove_path(tree: Rc<RefCell<Self>>, path: &str)
pub fn build_from_layer_tar<R: Read>(
ar: Archive<R>
) -> Result<Rc<RefCell<Self>>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FileTree
impl !Send for FileTree
impl !Sync for FileTree
impl Unpin for FileTree
impl !UnwindSafe for FileTree
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more