Enum ubiquity::state::ArchiveEntryPerReplica [] [src]

pub enum ArchiveEntryPerReplica {
    Empty,
    Directory(ArchiveEntryExists),
    File(ArchiveEntryExists),
    Symlink(ArchiveEntryExists),
}

Mirrors the state of a path on the filesystem.

Variants

EmptyDirectory(ArchiveEntryExists)File(ArchiveEntryExists)Symlink(ArchiveEntryExists)

Methods

impl ArchiveEntryPerReplica
[src]

fn from_roots<AL: ArchiveLen>(roots: &[PathBuf], path: &Path) -> GenericArray<ArchiveEntryPerReplica, AL>

Creates an array of ArchiveEntryPerReplica instances that reflect the current state of path inside roots.

fn equal_ty(a: &ArchiveEntryPerReplica, b: &ArchiveEntryPerReplica) -> bool

Returns true if the entries are equal in type but not necessarily in content.

Returns true if the entry is a file or a symlink

fn entry_exists(&self) -> bool

Returns true if the entry is present (ie: it is not empty)

Trait Implementations

impl Eq for ArchiveEntryPerReplica
[src]

impl PartialEq for ArchiveEntryPerReplica
[src]

fn eq(&self, __arg_0: &ArchiveEntryPerReplica) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ArchiveEntryPerReplica) -> bool

This method tests for !=.

impl Debug for ArchiveEntryPerReplica
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for ArchiveEntryPerReplica
[src]

impl Clone for ArchiveEntryPerReplica
[src]

fn clone(&self) -> ArchiveEntryPerReplica

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> From<&'a Path> for ArchiveEntryPerReplica
[src]

fn from(path: &'a Path) -> ArchiveEntryPerReplica

Performs the conversion.