pub enum PruneError {
Unknown(String),
ShlexError,
CommandFailed(Error),
InvalidBorgOutput(Error),
DeserializeError(Error),
TerminatedBySignal,
PipeFailed,
ArchiveAlreadyExists,
UnexpectedMessageId(MessageId),
}Expand description
The errors that can be returned from crate::sync::prune
Variants§
Unknown(String)
An unknown error occurred
ShlexError
Error while splitting the arguments
CommandFailed(Error)
The command failed to execute
InvalidBorgOutput(Error)
Invalid borg output found
DeserializeError(Error)
Error while deserializing output of borg
TerminatedBySignal
Borg was terminated by a signal
PipeFailed
Piping from stdout or stderr failed
ArchiveAlreadyExists
The specified archive name already exists
UnexpectedMessageId(MessageId)
An unexpected message id was received
Trait Implementations§
Source§impl Debug for PruneError
impl Debug for PruneError
Source§impl Display for PruneError
impl Display for PruneError
Source§impl Error for PruneError
impl Error for PruneError
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 PruneError
impl From<Error> for PruneError
Auto Trait Implementations§
impl Freeze for PruneError
impl !RefUnwindSafe for PruneError
impl Send for PruneError
impl Sync for PruneError
impl Unpin for PruneError
impl !UnwindSafe for PruneError
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