#[non_exhaustive]pub enum PathsError {
Unresolved {
directory: &'static str,
variables: &'static [&'static str],
},
RelativePath {
source: String,
path: PathBuf,
},
CurrentDir(Error),
InvalidUserToken,
}Expand description
A path could not be resolved without an unsafe relative fallback.
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.
Unresolved
None of the listed variables supplied a usable absolute directory.
Fields
RelativePath
An exclusive connection-file override or base directory was relative.
CurrentDir(Error)
The current directory could not be read for an explicit relative path.
InvalidUserToken
A per-user token was empty or contained a path separator.
Trait Implementations§
Source§impl Debug for PathsError
impl Debug for PathsError
Source§impl Display for PathsError
impl Display for PathsError
Source§impl Error for PathsError
impl Error for PathsError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for PathsError
impl !UnwindSafe for PathsError
impl Freeze for PathsError
impl Send for PathsError
impl Sync for PathsError
impl Unpin for PathsError
impl UnsafeUnpin for PathsError
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