pub enum Error {
Show 19 variants
Fetch(Error),
TimeoutExceeded {
seconds: u64,
},
WorkspaceError(Error),
LFSImporter(Error),
Command(Error),
Io {
command: String,
},
InvalidPath(String),
ParseError(ParseError),
Libgit2Error(Error),
AllRefspecsFailed {
refs: PushRefs,
n_attempted: i64,
},
SomeRefspecsFailed {
refs: PushRefs,
n_failed: i64,
},
InvalidGlobPattern {
pattern: String,
error: String,
},
RawFiles(Error),
NoMatchingRefspecs,
CannotParsePushOutput(String),
Sha256sumsNotSpecified(String),
InvalidIgnorePattern(String),
RawFileNotSupported(String),
Remote(Error),
}
Expand description
Top-level error type containing all possible errors during a mirroring operation.
Variants§
Fetch(Error)
The upstream was a git repo. There was an error pulling from the remote.
TimeoutExceeded
Indicates that the job exceeded the time it was allocated in the Lorry configuration
WorkspaceError(Error)
An error occurred that originated in the workspace module.
LFSImporter(Error)
An error occured when importing raw files into a working directory.
Command(Error)
Generic command execution error not specific to any particular module.
Io
Generic IO error
InvalidPath(String)
Tried to access a repository on the local filesystem as the downstream, but the given path is not a valid one.
ParseError(ParseError)
Problem parsing a downstream git url
Libgit2Error(Error)
Generic Libgit2 failure not specific to any particular module.
AllRefspecsFailed
Indicates that 100% of the desired refs failed to push to the downstream.
SomeRefspecsFailed
Indicates some but not all of the desired refspecs were not able to be pushed downstream for some reason.
InvalidGlobPattern
Indicates a refspec was malformed
RawFiles(Error)
An error related to raw-file management occurred.
NoMatchingRefspecs
Indicates none of the refs in the mirror configuration matches those that were available in the repository.
CannotParsePushOutput(String)
Indicates that a push command failed and we could not understand the the reason why. This may be due to a downstream server error.
Sha256sumsNotSpecified(String)
Indicates that the server requires Sha256sum values for all aw-files but the file did not have one specified.
InvalidIgnorePattern(String)
Indicates the ignore pattern was not a valid regular expression
RawFileNotSupported(String)
Raw file mirrors are not supported
Remote(Error)
An operation has failed on a remote
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: Libgit2Error) -> Self
fn from(source: Libgit2Error) -> Self
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.