pub enum ZinitError {
ConnectionError(Error),
ProtocolError(String),
ServiceError(String),
TimeoutError(Duration),
RetryLimitReached(usize),
ParseError(Error),
UnknownService(String),
ServiceAlreadyMonitored(String),
ServiceIsUp(String),
ServiceIsDown(String),
InvalidSignal(String),
ShuttingDown,
}
Expand description
Custom error types for the Zinit client
Variants§
ConnectionError(Error)
Error connecting to the Zinit socket
ProtocolError(String)
Error in the Zinit protocol
ServiceError(String)
Error from the Zinit service
TimeoutError(Duration)
Operation timed out
RetryLimitReached(usize)
Retry limit reached
ParseError(Error)
Error parsing JSON response
UnknownService(String)
Unknown service
ServiceAlreadyMonitored(String)
Service already monitored
ServiceIsUp(String)
Service is up (can’t forget)
ServiceIsDown(String)
Service is down (can’t kill)
InvalidSignal(String)
Invalid signal name
ShuttingDown
System is shutting down
Trait Implementations§
Source§impl Debug for ZinitError
impl Debug for ZinitError
Source§impl Display for ZinitError
impl Display for ZinitError
Source§impl Error for ZinitError
impl Error for ZinitError
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 ZinitError
impl From<Error> for ZinitError
Auto Trait Implementations§
impl Freeze for ZinitError
impl !RefUnwindSafe for ZinitError
impl Send for ZinitError
impl Sync for ZinitError
impl Unpin for ZinitError
impl !UnwindSafe for ZinitError
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