pub enum DotfilePathError {
NotAllowed {
segment: String,
path: String,
},
ParentTraversal(String),
Malformed(String),
}Expand description
Dotfile allowlist errors used by the row-115 free primitive.
Variants§
NotAllowed
A path segment started with . and was not on the allowlist.
ParentTraversal(String)
A .. (parent) segment was encountered — rejected as defence
in depth against directory traversal.
Malformed(String)
A non-UTF-8 or otherwise malformed segment (Solid paths are
UTF-8). Currently unreachable from &str but kept for
forward-compat with OsStr-keyed callers.
Trait Implementations§
Source§impl Clone for DotfilePathError
impl Clone for DotfilePathError
Source§fn clone(&self) -> DotfilePathError
fn clone(&self) -> DotfilePathError
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 moreSource§impl Debug for DotfilePathError
impl Debug for DotfilePathError
Source§impl Display for DotfilePathError
impl Display for DotfilePathError
Source§impl Error for DotfilePathError
impl Error for DotfilePathError
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 Hash for DotfilePathError
impl Hash for DotfilePathError
Source§impl PartialEq for DotfilePathError
impl PartialEq for DotfilePathError
Source§fn eq(&self, other: &DotfilePathError) -> bool
fn eq(&self, other: &DotfilePathError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DotfilePathError
impl StructuralPartialEq for DotfilePathError
Auto Trait Implementations§
impl Freeze for DotfilePathError
impl RefUnwindSafe for DotfilePathError
impl Send for DotfilePathError
impl Sync for DotfilePathError
impl Unpin for DotfilePathError
impl UnsafeUnpin for DotfilePathError
impl UnwindSafe for DotfilePathError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.