Enum brane_cli::errors::ImportError
source · pub enum ImportError {
TempDirError {
err: Error,
},
TempDirCanonicalizeError {
path: PathBuf,
err: Error,
},
RepoCloneError {
repo: String,
target: PathBuf,
err: Error,
},
RepoEscapeError {
path: PathBuf,
},
}
Expand description
Collects errors during the import subcommand
Variants§
TempDirError
Error for when we could not create a temporary directory
TempDirCanonicalizeError
Could not resolve the path to the temporary repository directory
RepoCloneError
Error for when we failed to download a repository
RepoEscapeError
Error for when a path supposed to refer inside the repository escaped out of it
Trait Implementations§
source§impl Debug for ImportError
impl Debug for ImportError
source§impl Display for ImportError
impl Display for ImportError
source§impl Error for ImportError
impl Error for ImportError
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 Freeze for ImportError
impl !RefUnwindSafe for ImportError
impl Send for ImportError
impl Sync for ImportError
impl Unpin for ImportError
impl !UnwindSafe for ImportError
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> ErrorTrace for Twhere
T: Error,
impl<T> ErrorTrace for Twhere
T: Error,
source§fn trace(&self) -> ErrorTraceFormatter<'_>
fn trace(&self) -> ErrorTraceFormatter<'_>
Returns a formatter that writes the error to the given formatter, with any sources it has. Read more
source§impl<T> ErrorTrace for T
impl<T> ErrorTrace for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request