pub enum PathError {
InvalidPath(String),
EncodingError(String),
SecurityError(String),
PlatformError(String),
NormalizationError(String),
ParseError(String),
IoError(String),
UnsupportedFormat(String),
DriveMappingError(String),
}Expand description
Path error type
Variants§
InvalidPath(String)
Invalid path
EncodingError(String)
Encoding error
SecurityError(String)
Security error
PlatformError(String)
Platform-specific error
NormalizationError(String)
Path normalization error
ParseError(String)
Path parsing error
IoError(String)
IO error
UnsupportedFormat(String)
Unsupported path format
DriveMappingError(String)
Drive mapping error
Implementations§
Source§impl PathError
impl PathError
Sourcepub fn invalid_path(msg: impl Into<String>) -> Self
pub fn invalid_path(msg: impl Into<String>) -> Self
Create new InvalidPath error
Sourcepub fn encoding_error(msg: impl Into<String>) -> Self
pub fn encoding_error(msg: impl Into<String>) -> Self
Create new EncodingError
Sourcepub fn security_error(msg: impl Into<String>) -> Self
pub fn security_error(msg: impl Into<String>) -> Self
Create new SecurityError
Sourcepub fn platform_error(msg: impl Into<String>) -> Self
pub fn platform_error(msg: impl Into<String>) -> Self
Create new PlatformError
Trait Implementations§
Source§impl Error for PathError
impl Error for PathError
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()
impl Eq for PathError
impl StructuralPartialEq for PathError
Auto Trait Implementations§
impl Freeze for PathError
impl RefUnwindSafe for PathError
impl Send for PathError
impl Sync for PathError
impl Unpin for PathError
impl UnwindSafe for PathError
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