brane_api::errors

Enum PackageError

Source
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.

Fields

§name: String
§err: Error
§

TypesSerializeError

Failed to serialize the types in a PackageInfo.

Fields

§name: String
§err: Error
§

MissingDigest

The given PackageInfo did not have a digest registered.

Fields

§name: String
§

PackageTypeDefineError

Failed to define the brane.package type in the Scylla database.

Fields

§

PackageTableDefineError

Failed to define the package table in the Scylla database.

Fields

§

PackageInsertError

Failed to insert a new package in the database.

Fields

§name: String
§

VersionsQueryError

Failed to query for the given package in the Scylla database.

Fields

§name: String
§

VersionParseError

Failed to parse a Version string

Fields

§

NoVersionsFound

No versions found for the given package

Fields

§name: String
§

PathQueryError

Failed to query the database for the file of the given package.

Fields

§name: String
§version: Version
§

UnknownPackage

The given package was unknown.

Fields

§name: String
§version: Version
§

FileMetadataError

Failed to get the metadata of a file.

Fields

§path: PathBuf
§err: Error
§

FileOpenError

Failed to open a file.

Fields

§path: PathBuf
§err: Error
§

FileReadError

Failed to read a file.

Fields

§path: PathBuf
§err: Error
§

FileSendError

Failed to send a file chunk.

Fields

§path: PathBuf
§err: Error
§

NodeConfigLoadError

Failed to load the node config.

Fields

§

NodeConfigUnexpectedKind

The given node config was not for central nodes.

Fields

§path: PathBuf
§expected: NodeKind
§

TempDirCreateError

Failed to create a temporary directory.

Fields

§err: Error
§

TarCreateError

Failed to create a particular file.

Fields

§path: PathBuf
§err: Error
§

BodyReadError

Failed to read the next chunk in the body stream.

Fields

§err: Error
§

TarWriteError

Failed to write a chunk to a particular tar file.

Fields

§path: PathBuf
§err: Error
§

TarFlushError

Failed to flush the tarfile handle.

Fields

§path: PathBuf
§err: Error
§

TarReopenError

Failed to re-open the downloaded tarfile to extract it.

Fields

§path: PathBuf
§err: Error
§

TarEntriesError

Failed to get the list of entries in the tar file.

Fields

§path: PathBuf
§err: Error
§

TarEntryError

Failed to get a single entry in the entries of a tar file.

Fields

§path: PathBuf
§entry: usize
§err: Error
§

TarNotEnoughEntries

The given tar file had less entries than we expected.

Fields

§path: PathBuf
§expected: usize
§got: usize
§

TarTooManyEntries

The given tar file had too many entries.

Fields

§path: PathBuf
§expected: usize
§

TarEntryPathError

Failed to get the path of an entry.

Fields

§path: PathBuf
§entry: usize
§err: Error
§

TarMissingEntries

The given tar file is missing expected entries.

Fields

§expected: Vec<&'static str>
§path: PathBuf
§

TarFileCloseError

Failed to properly close the tar file.

Fields

§path: PathBuf
§

TarFileUnpackError

Failed to unpack the given image file.

Fields

§file: PathBuf
§tarball: PathBuf
§target: PathBuf
§err: Error
§

PackageInfoReadError

Failed to read the extracted package info file.

Fields

§path: PathBuf
§err: Error
§

PackageInfoParseError

Failed to parse the extracted package info file.

Fields

§path: PathBuf
§err: Error
§

FileMoveError

Failed to move the temporary image to its final destination.

Fields

§from: PathBuf
§err: Error

Trait Implementations§

Source§

impl Debug for PackageError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for PackageError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> FResult

Formats the value using the given formatter. Read more
Source§

impl Error for PackageError

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErrorTrace for T
where T: Error,

Source§

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T