Enum rust_unixfs::dir::builder::TreeBuildingFailed
source · pub enum TreeBuildingFailed {
RootedPath(String),
RepeatSlashesInPath(String),
PathEndsInSlash(String),
TooManyRootLevelEntries,
DuplicatePath(String),
LeafAsDirectory(String),
}
Expand description
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§
source§impl Debug for TreeBuildingFailed
impl Debug for TreeBuildingFailed
source§impl Display for TreeBuildingFailed
impl Display for TreeBuildingFailed
source§impl Error for TreeBuildingFailed
impl Error for TreeBuildingFailed
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()