pub enum OutpostError {
Show 27 variants
NotARepo(PathBuf),
NotAnOutpost(PathBuf),
SourceMissing(PathBuf),
WrongContext {
command: &'static str,
expected: &'static str,
cwd: PathBuf,
},
MissingOutpostPath {
command: &'static str,
cwd: PathBuf,
},
DestinationExists(PathBuf),
DestinationInsideRepo(PathBuf),
DirtyTree {
repo: PathBuf,
hint: &'static str,
},
UnpushedCommits {
repo: PathBuf,
branch: String,
hint: &'static str,
},
Divergence {
branch: String,
},
BranchNotFound {
branch: String,
repo: PathBuf,
},
NoUpstreamTracking {
branch: String,
},
UpstreamNotABranch {
merge_ref: String,
},
InvalidRefName {
name: String,
},
PushIntoCheckedOutBranch {
source: PathBuf,
branch: String,
},
AmbiguousBranchCreation {
branch: String,
},
OutpostLocked {
path: PathBuf,
reason: String,
},
RegistryEntryNotManaged(PathBuf),
RegistryEntryNotFound(PathBuf),
OutpostIdPrefixNotFound(String),
OutpostIdPrefixAmbiguous(String),
OutpostSelectorAmbiguous(String),
BadRegistry {
path: PathBuf,
reason: String,
},
BadMetadata {
outpost: PathBuf,
reason: String,
},
GitFailed {
args: String,
code: i32,
stderr: String,
},
GitTerminatedBySignal {
args: String,
signal_str: String,
},
IoAt {
path: PathBuf,
source: Error,
},
}Variants§
NotARepo(PathBuf)
NotAnOutpost(PathBuf)
SourceMissing(PathBuf)
WrongContext
MissingOutpostPath
DestinationExists(PathBuf)
DestinationInsideRepo(PathBuf)
DirtyTree
UnpushedCommits
Divergence
BranchNotFound
NoUpstreamTracking
UpstreamNotABranch
InvalidRefName
PushIntoCheckedOutBranch
AmbiguousBranchCreation
OutpostLocked
RegistryEntryNotManaged(PathBuf)
RegistryEntryNotFound(PathBuf)
OutpostIdPrefixNotFound(String)
OutpostIdPrefixAmbiguous(String)
OutpostSelectorAmbiguous(String)
BadRegistry
BadMetadata
GitFailed
GitTerminatedBySignal
IoAt
Implementations§
Trait Implementations§
Source§impl Debug for OutpostError
impl Debug for OutpostError
Source§impl Display for OutpostError
impl Display for OutpostError
Source§impl Error for OutpostError
impl Error for OutpostError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for OutpostError
impl !UnwindSafe for OutpostError
impl Freeze for OutpostError
impl Send for OutpostError
impl Sync for OutpostError
impl Unpin for OutpostError
impl UnsafeUnpin for OutpostError
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