pub enum PathSafetyError {
TraversalNotAllowed,
OutsideSandbox {
root: String,
},
SensitivePrefix {
prefix: String,
},
HiddenOrSensitiveComponent {
component: String,
},
}Variants§
Trait Implementations§
Source§impl Debug for PathSafetyError
impl Debug for PathSafetyError
Source§impl Display for PathSafetyError
impl Display for PathSafetyError
impl Eq for PathSafetyError
Source§impl Error for PathSafetyError
impl Error for PathSafetyError
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 PathSafetyError
impl PartialEq for PathSafetyError
Source§fn eq(&self, other: &PathSafetyError) -> bool
fn eq(&self, other: &PathSafetyError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PathSafetyError
Auto Trait Implementations§
impl Freeze for PathSafetyError
impl RefUnwindSafe for PathSafetyError
impl Send for PathSafetyError
impl Sync for PathSafetyError
impl Unpin for PathSafetyError
impl UnsafeUnpin for PathSafetyError
impl UnwindSafe for PathSafetyError
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