pub enum SpoolError {
Io(Error),
Serde(Error),
Client(ClientError),
}Expand description
Errors from SpooledClient operations.
Note that a daemon outage is not an error from
SpooledClient::append_observation — it returns AppendOutcome::Spooled.
SpoolError::Client only carries the propagated client errors (the
daemon responded and rejected the request).
Variants§
Io(Error)
A spool-file I/O failure (open, read, append, temp-write, rename).
Serde(Error)
A spool entry could not be (de)serialized.
Client(ClientError)
The daemon responded with a non-connectivity error that must not be
spooled (Api, SchemaMismatch, Decode, Io).
Trait Implementations§
Source§impl Debug for SpoolError
impl Debug for SpoolError
Source§impl Display for SpoolError
impl Display for SpoolError
Source§impl Error for SpoolError
impl Error for SpoolError
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<ClientError> for SpoolError
impl From<ClientError> for SpoolError
Source§fn from(source: ClientError) -> SpoolError
fn from(source: ClientError) -> SpoolError
Converts to this type from the input type.
Source§impl From<Error> for SpoolError
impl From<Error> for SpoolError
Source§fn from(source: Error) -> SpoolError
fn from(source: Error) -> SpoolError
Converts to this type from the input type.
Source§impl From<Error> for SpoolError
impl From<Error> for SpoolError
Source§fn from(source: Error) -> SpoolError
fn from(source: Error) -> SpoolError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SpoolError
impl !UnwindSafe for SpoolError
impl Freeze for SpoolError
impl Send for SpoolError
impl Sync for SpoolError
impl Unpin for SpoolError
impl UnsafeUnpin for SpoolError
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