pub enum BranchError {
Corrupt(String),
Lock(LockError),
Transport(TransportError),
Config(ConfigError),
NotStacked,
Unstackable,
Unsupported(String),
}Expand description
Errors from branch operations.
Variants§
Corrupt(String)
The last-revision file was malformed.
Lock(LockError)
The branch lock could not be taken or released.
Transport(TransportError)
An underlying transport error.
Config(ConfigError)
A config file could not be parsed.
NotStacked
The branch is not stacked (a stackable format with no stacked_on_location).
Unstackable
The branch format does not support stacking (formats 5 and 6).
Unsupported(String)
An operation is not supported by this branch format (e.g. reference locations on format 5).
Trait Implementations§
Source§impl Debug for BranchError
impl Debug for BranchError
Source§impl Display for BranchError
impl Display for BranchError
Source§impl Error for BranchError
impl Error for BranchError
1.30.0 · 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<ConfigError> for BranchError
impl From<ConfigError> for BranchError
Source§fn from(e: ConfigError) -> Self
fn from(e: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<LockError> for BranchError
impl From<LockError> for BranchError
Source§impl From<TransportError> for BranchError
impl From<TransportError> for BranchError
Source§fn from(e: TransportError) -> Self
fn from(e: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BranchError
impl RefUnwindSafe for BranchError
impl Send for BranchError
impl Sync for BranchError
impl Unpin for BranchError
impl UnsafeUnpin for BranchError
impl UnwindSafe for BranchError
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