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
sourceimpl Debug for TreeBuildingFailed
impl Debug for TreeBuildingFailed
sourceimpl Display for TreeBuildingFailed
impl Display for TreeBuildingFailed
sourceimpl Error for TreeBuildingFailed
impl Error for TreeBuildingFailed
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for TreeBuildingFailed
impl Send for TreeBuildingFailed
impl Sync for TreeBuildingFailed
impl Unpin for TreeBuildingFailed
impl UnwindSafe for TreeBuildingFailed
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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