[][src]Enum ipfs_unixfs::dir::builder::TreeBuildingFailed

pub enum TreeBuildingFailed {
    RootedPath(String),
    RepeatSlashesInPath(String),
    PathEndsInSlash(String),
    TooManyRootLevelEntries,
    DuplicatePath(String),
    LeafAsDirectory(String),
}

Tree building failure cases.

Variants

RootedPath(String)

The given full path started with a slash; paths in the /add convention are not rooted.

RepeatSlashesInPath(String)

The given full path contained an empty segment.

PathEndsInSlash(String)

The given full path ends in slash.

TooManyRootLevelEntries

If the BufferingTreeBuilder was created without TreeOptions with the option wrap_with_directory enabled, then there can be only a single element at the root.

DuplicatePath(String)

The given full path had already been added.

LeafAsDirectory(String)

The given full path had already been added as a link to an opaque entry.

Trait Implementations

impl Debug for TreeBuildingFailed[src]

impl Display for TreeBuildingFailed[src]

impl Error for TreeBuildingFailed[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.