pub enum PackageError {
Show 34 variants
FunctionsSerializeError {
name: String,
err: Error,
},
TypesSerializeError {
name: String,
err: Error,
},
MissingDigest {
name: String,
},
PackageTypeDefineError {
err: QueryError,
},
PackageTableDefineError {
err: QueryError,
},
PackageInsertError {
name: String,
err: QueryError,
},
VersionsQueryError {
name: String,
err: QueryError,
},
VersionParseError {
raw: String,
err: ParseError,
},
NoVersionsFound {
name: String,
},
PathQueryError {
name: String,
version: Version,
err: QueryError,
},
UnknownPackage {
name: String,
version: Version,
},
FileMetadataError {
path: PathBuf,
err: Error,
},
FileOpenError {
path: PathBuf,
err: Error,
},
FileReadError {
path: PathBuf,
err: Error,
},
FileSendError {
path: PathBuf,
err: Error,
},
NodeConfigLoadError {
err: YamlError,
},
NodeConfigUnexpectedKind {
path: PathBuf,
got: NodeKind,
expected: NodeKind,
},
TempDirCreateError {
err: Error,
},
TarCreateError {
path: PathBuf,
err: Error,
},
BodyReadError {
err: Error,
},
TarWriteError {
path: PathBuf,
err: Error,
},
TarFlushError {
path: PathBuf,
err: Error,
},
TarReopenError {
path: PathBuf,
err: Error,
},
TarEntriesError {
path: PathBuf,
err: Error,
},
TarEntryError {
path: PathBuf,
entry: usize,
err: Error,
},
TarNotEnoughEntries {
path: PathBuf,
expected: usize,
got: usize,
},
TarTooManyEntries {
path: PathBuf,
expected: usize,
},
TarEntryPathError {
path: PathBuf,
entry: usize,
err: Error,
},
TarMissingEntries {
expected: Vec<&'static str>,
path: PathBuf,
},
TarFileCloseError {
path: PathBuf,
},
TarFileUnpackError {
file: PathBuf,
tarball: PathBuf,
target: PathBuf,
err: Error,
},
PackageInfoReadError {
path: PathBuf,
err: Error,
},
PackageInfoParseError {
path: PathBuf,
err: Error,
},
FileMoveError {
from: PathBuf,
to: PathBuf,
err: Error,
},
}
Expand description
Contains errors relating to the /packages
path (and nested).
Variants§
FunctionsSerializeError
Failed to serialize the funcitions in a PackageInfo.
TypesSerializeError
Failed to serialize the types in a PackageInfo.
MissingDigest
The given PackageInfo did not have a digest registered.
PackageTypeDefineError
Failed to define the brane.package
type in the Scylla database.
Fields
err: QueryError
PackageTableDefineError
Failed to define the package table in the Scylla database.
Fields
err: QueryError
PackageInsertError
Failed to insert a new package in the database.
VersionsQueryError
Failed to query for the given package in the Scylla database.
VersionParseError
Failed to parse a Version string
NoVersionsFound
No versions found for the given package
PathQueryError
Failed to query the database for the file of the given package.
UnknownPackage
The given package was unknown.
FileMetadataError
Failed to get the metadata of a file.
FileOpenError
Failed to open a file.
FileReadError
Failed to read a file.
FileSendError
Failed to send a file chunk.
NodeConfigLoadError
Failed to load the node config.
NodeConfigUnexpectedKind
The given node config was not for central nodes.
TempDirCreateError
Failed to create a temporary directory.
TarCreateError
Failed to create a particular file.
BodyReadError
Failed to read the next chunk in the body stream.
TarWriteError
Failed to write a chunk to a particular tar file.
TarFlushError
Failed to flush the tarfile handle.
TarReopenError
Failed to re-open the downloaded tarfile to extract it.
TarEntriesError
Failed to get the list of entries in the tar file.
TarEntryError
Failed to get a single entry in the entries of a tar file.
TarNotEnoughEntries
The given tar file had less entries than we expected.
TarTooManyEntries
The given tar file had too many entries.
TarEntryPathError
Failed to get the path of an entry.
TarMissingEntries
The given tar file is missing expected entries.
TarFileCloseError
Failed to properly close the tar file.
TarFileUnpackError
Failed to unpack the given image file.
PackageInfoReadError
Failed to read the extracted package info file.
PackageInfoParseError
Failed to parse the extracted package info file.
FileMoveError
Failed to move the temporary image to its final destination.
Trait Implementations§
Source§impl Debug for PackageError
impl Debug for PackageError
Source§impl Display for PackageError
impl Display for PackageError
Source§impl Error for PackageError
impl Error for PackageError
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 PackageError
impl !RefUnwindSafe for PackageError
impl Send for PackageError
impl Sync for PackageError
impl Unpin for PackageError
impl !UnwindSafe for PackageError
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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