pub enum HandoffError {
Create {
directory: PathBuf,
source: Error,
},
Write {
path: PathBuf,
source: Error,
},
Inspect {
path: PathBuf,
source: Error,
},
Delete {
path: PathBuf,
source: Error,
},
}Expand description
Something went wrong creating, inspecting, or removing a handoff file.
Variants§
Create
The file could not be created with restrictive permissions.
Fields
Write
The payload could not be written.
Inspect
The file’s permissions could not be read back.
Delete
The file could not be removed.
Worth an error rather than a shrug: a JIT configuration left on disk is
the exact thing 05-infrastructure.md says must be deleted immediately.
Trait Implementations§
Source§impl Debug for HandoffError
impl Debug for HandoffError
Source§impl Display for HandoffError
impl Display for HandoffError
Source§impl Error for HandoffError
impl Error for HandoffError
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 HandoffError
impl !UnwindSafe for HandoffError
impl Freeze for HandoffError
impl Send for HandoffError
impl Sync for HandoffError
impl Unpin for HandoffError
impl UnsafeUnpin for HandoffError
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