pub enum RemoteGitError {
Exec(String),
Exit {
op: &'static str,
code: i32,
stderr: String,
},
Parse(&'static str),
Utf8(&'static str),
Truncated {
op: &'static str,
dropped: u64,
},
}Expand description
Why a remote or in-container Git query failed — typed at this boundary, never a bare string and never an empty list standing in for “failed”.
Variants§
Exec(String)
The remote execution boundary refused or failed; the string is its own typed diagnosis (transport, supervisor, missing python3, cancellation, timeout…).
Exit
git itself exited nonzero: the operation name, exit code and
git’s stderr.
Parse(&'static str)
A record git produced did not have the shape this parser admits — corrupt or surprising output is refused, never guessed.
Utf8(&'static str)
Blob content that must be UTF-8 for the surface was not.
Truncated
The remote git output bound truncated a stream this query
needs complete.
Trait Implementations§
Source§impl Clone for RemoteGitError
impl Clone for RemoteGitError
Source§fn clone(&self) -> RemoteGitError
fn clone(&self) -> RemoteGitError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RemoteGitError
impl Debug for RemoteGitError
Source§impl Display for RemoteGitError
impl Display for RemoteGitError
impl Eq for RemoteGitError
Source§impl Error for RemoteGitError
impl Error for RemoteGitError
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<GitExecError> for RemoteGitError
impl From<GitExecError> for RemoteGitError
Source§fn from(error: GitExecError) -> Self
fn from(error: GitExecError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RemoteGitError
impl PartialEq for RemoteGitError
impl StructuralPartialEq for RemoteGitError
Auto Trait Implementations§
impl Freeze for RemoteGitError
impl RefUnwindSafe for RemoteGitError
impl Send for RemoteGitError
impl Sync for RemoteGitError
impl Unpin for RemoteGitError
impl UnsafeUnpin for RemoteGitError
impl UnwindSafe for RemoteGitError
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