pub enum LocalPathError {
Empty,
NotAbsolute {
got: String,
},
RootPath {
got: String,
},
Traversal {
got: String,
},
Unc {
got: String,
},
DeviceNamespace {
got: String,
},
UnrepresentableCharacter {
component: String,
found: char,
},
TrailingDotOrSpace {
component: String,
},
ReservedName {
component: String,
},
NotASingleComponent {
got: String,
},
}Expand description
Why a string is not a storable local absolute path.
Every variant carries the offending text so the CLI and TUI can say which part of the operator’s input failed. Paths are not credentials — no variant here may ever be given a token, a JIT configuration, or any other secret.
Variants§
Empty
NotAbsolute
RootPath
Traversal
Unc
DeviceNamespace
UnrepresentableCharacter
TrailingDotOrSpace
ReservedName
NotASingleComponent
Trait Implementations§
Source§impl Clone for LocalPathError
impl Clone for LocalPathError
Source§fn clone(&self) -> LocalPathError
fn clone(&self) -> LocalPathError
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 LocalPathError
impl Debug for LocalPathError
Source§impl Display for LocalPathError
impl Display for LocalPathError
impl Eq for LocalPathError
Source§impl Error for LocalPathError
impl Error for LocalPathError
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<LocalPathError> for WorkspaceError
impl From<LocalPathError> for WorkspaceError
Source§fn from(source: LocalPathError) -> Self
fn from(source: LocalPathError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LocalPathError
impl PartialEq for LocalPathError
impl StructuralPartialEq for LocalPathError
Auto Trait Implementations§
impl Freeze for LocalPathError
impl RefUnwindSafe for LocalPathError
impl Send for LocalPathError
impl Sync for LocalPathError
impl Unpin for LocalPathError
impl UnsafeUnpin for LocalPathError
impl UnwindSafe for LocalPathError
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