#[non_exhaustive]pub enum ErrorKind {
Show 25 variants
Invalid,
Unauthenticated,
Forbidden,
NotInSandbox,
SessionInactive,
UnknownMethod,
NotFound,
TooLarge,
RateLimited,
Busy,
Verifying,
Closed,
Timeout,
Conflict,
Denied,
ForeignKey,
UpToDate,
NotFastForward,
Git,
Integrity,
Unsupported,
Internal,
Io,
TimedOut,
Other,
}Expand description
An error code of the daemon (docs/protocol.md, “Error codes”), or of
this client: io (the connection failed) and timed_out (no answer
within Client::set_timeout).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invalid
Unauthenticated
Forbidden
NotInSandbox
SessionInactive
UnknownMethod
NotFound
TooLarge
RateLimited
Busy
Verifying
Closed
Timeout
The daemon’s: the request line took too long to arrive.
Conflict
Denied
ForeignKey
UpToDate
NotFastForward
Git
Integrity
Unsupported
Internal
Io
The client’s: the connection failed, or the answer was not one.
TimedOut
The client’s: no answer within the timeout. The request may have run; the connection is dropped and the next call opens another.
Other
A code this version does not know.
Implementations§
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Forget for ErrorKind
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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