pub enum MachineIdFileError {
RelativeDataHome {
data_home: PathBuf,
},
Corrupt {
path: PathBuf,
reason: String,
},
Read {
path: PathBuf,
source: Error,
},
Write {
path: PathBuf,
source: Error,
},
Random(Error),
}Expand description
Why the daemon could not establish its machine id.
Variants§
RelativeDataHome
The data home resolved to a relative path, so the file’s location would depend on the working directory.
Corrupt
The file exists but does not hold a machine id. The daemon refuses to start rather than replace it.
Read
The file exists but could not be read.
Write
A new file could not be written.
Random(Error)
The operating system’s random source failed.
Trait Implementations§
Source§impl Debug for MachineIdFileError
impl Debug for MachineIdFileError
Source§impl Display for MachineIdFileError
impl Display for MachineIdFileError
Source§impl Error for MachineIdFileError
impl Error for MachineIdFileError
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 MachineIdFileError
impl !UnwindSafe for MachineIdFileError
impl Freeze for MachineIdFileError
impl Send for MachineIdFileError
impl Sync for MachineIdFileError
impl Unpin for MachineIdFileError
impl UnsafeUnpin for MachineIdFileError
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