pub enum PathRejection {
Show 16 variants
Empty,
TooLong,
UnsupportedUriForm,
MalformedPercentEncoding,
InvalidUtf8,
NulByte,
AbsolutePath,
ParentComponent,
CurrentComponent,
SeparatorAmbiguity,
DotfileDenied,
WindowsPrefixDenied,
WindowsReservedNameDenied,
WindowsAlternateStreamDenied,
SymlinkDenied,
RootEscapeDenied,
}Variants§
Empty
TooLong
UnsupportedUriForm
MalformedPercentEncoding
InvalidUtf8
NulByte
AbsolutePath
ParentComponent
CurrentComponent
SeparatorAmbiguity
DotfileDenied
WindowsPrefixDenied
WindowsReservedNameDenied
WindowsAlternateStreamDenied
SymlinkDenied
RootEscapeDenied
Trait Implementations§
Source§impl Clone for PathRejection
impl Clone for PathRejection
Source§fn clone(&self) -> PathRejection
fn clone(&self) -> PathRejection
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 moreimpl Copy for PathRejection
Source§impl Debug for PathRejection
impl Debug for PathRejection
Source§impl Display for PathRejection
impl Display for PathRejection
impl Eq for PathRejection
Source§impl Error for PathRejection
impl Error for PathRejection
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 From<PathRejection> for ResourceDeniedReason
impl From<PathRejection> for ResourceDeniedReason
Source§fn from(rejection: PathRejection) -> Self
fn from(rejection: PathRejection) -> Self
Converts to this type from the input type.
Source§impl Hash for PathRejection
impl Hash for PathRejection
Source§impl PartialEq for PathRejection
impl PartialEq for PathRejection
impl StructuralPartialEq for PathRejection
Auto Trait Implementations§
impl Freeze for PathRejection
impl RefUnwindSafe for PathRejection
impl Send for PathRejection
impl Sync for PathRejection
impl Unpin for PathRejection
impl UnsafeUnpin for PathRejection
impl UnwindSafe for PathRejection
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