pub enum StoragePathError {
NotAbsolute,
EmptySegment,
CurrentDirectorySegment,
ParentDirectorySegment,
TraversalAboveRoot,
ControlCharacter,
Backslash,
TrailingWhitespace,
SegmentTooLong {
actual: usize,
maximum: usize,
},
PathTooLong {
actual: usize,
maximum: usize,
},
}Expand description
Error validating or normalizing a StoragePath.
Variants§
NotAbsolute
The path does not begin with /.
EmptySegment
The path contains an empty segment such as //.
CurrentDirectorySegment
The path contains a . segment.
ParentDirectorySegment
The path contains a .. segment.
TraversalAboveRoot
Normalization would traverse above root.
ControlCharacter
A segment contains a Unicode control character.
Backslash
A segment contains a backslash, which is a path separator on some platforms.
TrailingWhitespace
The complete path ends in Unicode whitespace.
SegmentTooLong
A decoded segment exceeds the byte limit.
Fields
PathTooLong
The complete decoded path exceeds the byte limit.
Trait Implementations§
Source§impl Clone for StoragePathError
impl Clone for StoragePathError
Source§fn clone(&self) -> StoragePathError
fn clone(&self) -> StoragePathError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoragePathError
impl Debug for StoragePathError
Source§impl Display for StoragePathError
impl Display for StoragePathError
impl Eq for StoragePathError
Source§impl Error for StoragePathError
impl Error for StoragePathError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl PartialEq for StoragePathError
impl PartialEq for StoragePathError
impl StructuralPartialEq for StoragePathError
Auto Trait Implementations§
impl Freeze for StoragePathError
impl RefUnwindSafe for StoragePathError
impl Send for StoragePathError
impl Sync for StoragePathError
impl Unpin for StoragePathError
impl UnsafeUnpin for StoragePathError
impl UnwindSafe for StoragePathError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more