#[non_exhaustive]pub enum ErrorKind {
Empty,
CurrentDirectoryMarker,
ParentDirectoryMarker,
ContainsForwardSlash,
ContainsNullByte,
}Expand description
The kind of error that occurred during path element normalization or validation.
See Error for the full error type, which also carries the original input string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
The name is empty (or becomes empty after whitespace trimming).
CurrentDirectoryMarker
The name is ., the current directory marker.
ParentDirectoryMarker
The name is .., the parent directory marker.
ContainsForwardSlash
The name contains a forward slash (/), which is a path separator.
ContainsNullByte
The name contains a null byte (\0), which all OSes treat as a string
terminator, silently truncating the name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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