pub enum VcsError {
Unavailable {
operation: VcsOperation,
provider_id: Option<VcsProviderId>,
path: Option<PathBuf>,
message: String,
},
UnsupportedOperation {
provider_id: VcsProviderId,
operation: VcsOperation,
capability: Option<VcsOperationCapability>,
message: String,
},
PathInvalid {
provider_id: VcsProviderId,
path: PathBuf,
message: String,
},
DirtyWorkspace {
provider_id: VcsProviderId,
operation: VcsOperation,
message: String,
},
CommandFailed {
provider_id: VcsProviderId,
operation: VcsOperation,
command: String,
exit_code: Option<i32>,
stderr: String,
},
ProviderNativeRequired {
provider_id: VcsProviderId,
operation: VcsOperation,
namespace: String,
message: String,
},
}Variants§
UnsupportedOperation
Fields
§
provider_id: VcsProviderId§
operation: VcsOperation§
capability: Option<VcsOperationCapability>PathInvalid
DirtyWorkspace
CommandFailed
ProviderNativeRequired
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VcsError
impl<'de> Deserialize<'de> for VcsError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VcsError
Source§impl Error for VcsError
impl Error for VcsError
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()
impl StructuralPartialEq for VcsError
Auto Trait Implementations§
impl Freeze for VcsError
impl RefUnwindSafe for VcsError
impl Send for VcsError
impl Sync for VcsError
impl Unpin for VcsError
impl UnsafeUnpin for VcsError
impl UnwindSafe for VcsError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.