pub enum BootstrapError {
Show 18 variants
StartupNotServing,
Signal(Error),
InvalidPort {
raw: String,
source: ParseIntError,
},
ConnectionFileRead {
path: PathBuf,
source: ConnectionFileError,
},
ConnectionFileWrite {
path: PathBuf,
source: ConnectionFileError,
},
GenerateConnectionFile(ConnectionFileError),
StartLockCreate {
path: PathBuf,
source: Error,
},
StartLockBusy {
path: PathBuf,
attempts: usize,
},
RunDirLockCreate {
path: PathBuf,
source: Error,
},
RunDirBusy {
path: PathBuf,
holder_pid: Option<u32>,
},
RemoveStale {
path: PathBuf,
source: Error,
},
Bind {
host: String,
port: u16,
source: Error,
},
LocalAddr {
host: String,
source: Error,
},
DaemonConfig(DaemonConfigError),
MachineId(MachineIdFileError),
RunDir(DaemonRunDirError),
Serve(ServerError),
ServeJoin(JoinError),
}Expand description
Bootstrap-layer errors are deliberately typed so startup never panics for ordinary daemon-discovery races or stale filesystem state.
Variants§
StartupNotServing
The bound server could not authenticate its own readiness probe.
Signal(Error)
InvalidPort
ConnectionFileRead
ConnectionFileWrite
GenerateConnectionFile(ConnectionFileError)
StartLockCreate
StartLockBusy
RunDirLockCreate
The run-directory lock file could not be created, opened or locked.
RunDirBusy
Another live process, almost certainly a daemon started with a
different runtime directory over the same data home, owns the run
directory. The daemon does not start. holder_pid is read from the
lock file when possible and is informational only.
RemoveStale
Bind
LocalAddr
DaemonConfig(DaemonConfigError)
MachineId(MachineIdFileError)
The machine id could not be established: its file is corrupt, unreadable or unwritable, or the data home is relative. The daemon does not start.
RunDir(DaemonRunDirError)
The daemon run directory could not be resolved because the data home is relative. The daemon does not start.
Serve(ServerError)
ServeJoin(JoinError)
Trait Implementations§
Source§impl Debug for BootstrapError
impl Debug for BootstrapError
Source§impl Display for BootstrapError
impl Display for BootstrapError
Source§impl Error for BootstrapError
impl Error for BootstrapError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()