pub enum TildeError {
OtherUser,
NoHome,
}Expand description
Why expand_home_tilde refused a value, with no per-field context
attached, for a caller that has none to give.
Variants§
OtherUser
The value names another user’s home (~user/...). Refused rather
than resolved: answering it means a passwd lookup, and under a
systemd unit the answer depends on who the process runs as rather
than on who wrote the value.
NoHome
The value begins ~/ and no home directory could be determined.
Trait Implementations§
Source§impl Clone for TildeError
impl Clone for TildeError
Source§fn clone(&self) -> TildeError
fn clone(&self) -> TildeError
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 TildeError
Source§impl Debug for TildeError
impl Debug for TildeError
Source§impl Display for TildeError
impl Display for TildeError
impl Eq for TildeError
Source§impl Error for TildeError
impl Error for TildeError
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 TildeError
impl PartialEq for TildeError
impl StructuralPartialEq for TildeError
Auto Trait Implementations§
impl Freeze for TildeError
impl RefUnwindSafe for TildeError
impl Send for TildeError
impl Sync for TildeError
impl Unpin for TildeError
impl UnsafeUnpin for TildeError
impl UnwindSafe for TildeError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.