#[non_exhaustive]pub enum DangerousPathError {
DangerousPath,
InvalidCharacters,
}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.
DangerousPath
Path contains dangerous segments (.. and drive letters on Windows)
InvalidCharacters
Path was either invalid UTF-8 (only on Windows), file name or contained forbidden characters:
\0on unix- 0-31 and
<>:"/\|?*on Windows
Trait Implementations§
Source§impl Clone for DangerousPathError
impl Clone for DangerousPathError
Source§fn clone(&self) -> DangerousPathError
fn clone(&self) -> DangerousPathError
Returns a duplicate of the value. Read more
1.0.0 · 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 DangerousPathError
impl Debug for DangerousPathError
Source§impl Display for DangerousPathError
impl Display for DangerousPathError
Source§impl Error for DangerousPathError
impl Error for DangerousPathError
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 HttpError for DangerousPathError
impl HttpError for DangerousPathError
Source§fn error_type(&self) -> HttpErrorType
fn error_type(&self) -> HttpErrorType
How should this error be handled, check
HttpErrorType for more info (User by default)Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Which status code should be used for this error
Source§fn http_description(&self) -> String
fn http_description(&self) -> String
Provides HTTP-friendly description of this error (
.to_string() by default)Source§impl PartialEq for DangerousPathError
impl PartialEq for DangerousPathError
impl StructuralPartialEq for DangerousPathError
Auto Trait Implementations§
impl Freeze for DangerousPathError
impl RefUnwindSafe for DangerousPathError
impl Send for DangerousPathError
impl Sync for DangerousPathError
impl Unpin for DangerousPathError
impl UnwindSafe for DangerousPathError
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