pub enum DaemonError {
Host(HostError),
Config(String),
Bind(Error),
Serve(Error),
Io(Error),
ConfigParse(Error),
}Expand description
Top-level daemon errors (startup/shutdown).
Variants§
Host(HostError)
Host startup or shutdown error.
Config(String)
Configuration error.
Bind(Error)
TCP bind failed.
Serve(Error)
HTTP server error.
Io(Error)
I/O error (config file reading, etc.)
ConfigParse(Error)
TOML parsing error.
Trait Implementations§
Source§impl Debug for DaemonError
impl Debug for DaemonError
Source§impl Display for DaemonError
impl Display for DaemonError
Source§impl Error for DaemonError
impl Error for DaemonError
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 From<Error> for DaemonError
impl From<Error> for DaemonError
Source§impl From<Error> for DaemonError
impl From<Error> for DaemonError
Auto Trait Implementations§
impl Freeze for DaemonError
impl !RefUnwindSafe for DaemonError
impl Send for DaemonError
impl Sync for DaemonError
impl Unpin for DaemonError
impl UnsafeUnpin for DaemonError
impl !UnwindSafe for DaemonError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.