pub enum BootstrapError {
Show 13 variants
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,
},
RemoveStale {
path: PathBuf,
source: Error,
},
Bind {
host: String,
port: u16,
source: Error,
},
LocalAddr {
host: String,
source: Error,
},
DaemonConfig(DaemonConfigError),
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§
Signal(Error)
InvalidPort
ConnectionFileRead
ConnectionFileWrite
GenerateConnectionFile(ConnectionFileError)
StartLockCreate
StartLockBusy
RemoveStale
Bind
LocalAddr
DaemonConfig(DaemonConfigError)
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)>
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 BootstrapError
impl !UnwindSafe for BootstrapError
impl Freeze for BootstrapError
impl Send for BootstrapError
impl Sync for BootstrapError
impl Unpin for BootstrapError
impl UnsafeUnpin for BootstrapError
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