Enum brane_cli::errors::RegistryError
source · pub enum RegistryError {
Show 27 variants
InstanceInfoError {
err: InstanceError,
},
PullRequestError {
url: String,
err: Error,
},
PullRequestFailure {
url: String,
status: StatusCode,
},
MissingContentLength {
url: String,
},
ContentLengthStrError {
url: String,
err: ToStrError,
},
ContentLengthParseError {
url: String,
raw: String,
err: ParseIntError,
},
PackageDownloadError {
url: String,
err: Error,
},
PackageWriteError {
url: String,
path: PathBuf,
err: Error,
},
PackageDirCreateError {
path: PathBuf,
err: Error,
},
PackageCopyError {
source: PathBuf,
target: PathBuf,
err: Error,
},
GraphQLRequestError {
url: String,
err: Error,
},
GraphQLResponseError {
url: String,
err: Error,
},
KindParseError {
url: String,
raw: String,
err: PackageKindError,
},
VersionParseError {
url: String,
raw: String,
err: ParseError,
},
RequirementParseError {
url: String,
raw: String,
err: Error,
},
FunctionsParseError {
url: String,
raw: String,
err: Error,
},
TypesParseError {
url: String,
raw: String,
err: Error,
},
PackageInfoCreateError {
path: PathBuf,
err: Error,
},
PackageInfoWriteError {
path: PathBuf,
err: Error,
},
NoPackageInfo {
url: String,
},
PackagesDirError {
err: UtilError,
},
VersionsError {
name: String,
err: Error,
},
PackageDirError {
name: String,
version: Version,
err: UtilError,
},
TempFileError {
err: Error,
},
CompressionError {
name: String,
version: Version,
path: PathBuf,
err: Error,
},
PackageArchiveOpenError {
path: PathBuf,
err: Error,
},
UploadError {
path: PathBuf,
endpoint: String,
err: Error,
},
}
Expand description
Collects errors during the registry subcommands
Variants§
InstanceInfoError
Wrapper error indeed.
Fields
err: InstanceError
PullRequestError
Failed to successfully send the package pull request
PullRequestFailure
The request was sent successfully, but the server replied with a non-200 access code
MissingContentLength
The request did not have a content length specified
ContentLengthStrError
Failed to convert the content length from raw bytes to string
ContentLengthParseError
Failed to parse the content length as a number
PackageDownloadError
Failed to download the actual package
PackageWriteError
Failed to write the downloaded package to the given file
PackageDirCreateError
Failed to create the package directory
PackageCopyError
Failed to copy the downloaded package over
GraphQLRequestError
Failed to send GraphQL request for package info
GraphQLResponseError
Failed to receive GraphQL response with package info
KindParseError
Could not parse the kind as a proper PackageInfo kind
VersionParseError
Could not parse the version as a proper PackageInfo version
RequirementParseError
Could not parse the list of requirements of the package.
FunctionsParseError
Could not parse the functions as proper PackageInfo functions
TypesParseError
Could not parse the types as proper PackageInfo types
PackageInfoCreateError
Could not create a file for the PackageInfo
PackageInfoWriteError
Could not write the PackageInfo
NoPackageInfo
Failed to retrieve the PackageInfo
PackagesDirError
Failed to resolve the packages directory
VersionsError
Failed to get all versions for the given package
PackageDirError
Failed to resolve the directory of a specific package
TempFileError
Could not create a new temporary file
CompressionError
Could not compress the package file
PackageArchiveOpenError
Failed to re-open the compressed package file
UploadError
Failed to upload the compressed file to the instance
Trait Implementations§
source§impl Debug for RegistryError
impl Debug for RegistryError
source§impl Display for RegistryError
impl Display for RegistryError
source§impl Error for RegistryError
impl Error for RegistryError
1.30.0 · 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
Auto Trait Implementations§
impl Freeze for RegistryError
impl !RefUnwindSafe for RegistryError
impl Send for RegistryError
impl Sync for RegistryError
impl Unpin for RegistryError
impl !UnwindSafe for RegistryError
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
source§impl<T> ErrorTrace for Twhere
T: Error,
impl<T> ErrorTrace for Twhere
T: Error,
source§fn trace(&self) -> ErrorTraceFormatter<'_>
fn trace(&self) -> ErrorTraceFormatter<'_>
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>
T
in a tonic::Request