Enum brane_tsk::errors::LocalError
source · pub enum LocalError {
PackageDirReadError {
path: PathBuf,
err: Error,
},
UnreadableVersionEntry {
path: PathBuf,
},
IllegalVersionEntry {
package: String,
version: String,
err: ParseError,
},
NoVersions {
package: String,
},
PackagesDirReadError {
path: PathBuf,
err: Error,
},
InvalidPackageYml {
package: String,
path: PathBuf,
err: PackageInfoError,
},
PackageIndexError {
err: PackageIndexError,
},
DatasetsReadError {
path: PathBuf,
err: Error,
},
DataInfoOpenError {
path: PathBuf,
err: Error,
},
DataInfoReadError {
path: PathBuf,
err: Error,
},
DataIndexError {
err: DataIndexError,
},
}
Expand description
Collects errors that relate to local index interaction.
Variants§
PackageDirReadError
There was an error reading entries from a package’s directory
UnreadableVersionEntry
Found a version entry who’s path could not be split into a filename
IllegalVersionEntry
The name of version directory in a package’s dir is not a valid version
NoVersions
The given package has no versions registered to it
PackagesDirReadError
There was an error reading entries from the packages directory
InvalidPackageYml
We tried to load a package YML but failed
PackageIndexError
We tried to load a Package Index from a JSON value with PackageInfos but we failed
Fields
§
err: PackageIndexError
DatasetsReadError
Failed to read the datasets folder
DataInfoOpenError
Failed to open a data.yml file.
DataInfoReadError
Failed to read/parse a data.yml file.
DataIndexError
Failed to create a new DataIndex from the infos locally read.
Fields
§
err: DataIndexError
Trait Implementations§
source§impl Debug for LocalError
impl Debug for LocalError
source§impl Display for LocalError
impl Display for LocalError
source§impl Error for LocalError
impl Error for LocalError
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 LocalError
impl !RefUnwindSafe for LocalError
impl Send for LocalError
impl Sync for LocalError
impl Unpin for LocalError
impl !UnwindSafe for LocalError
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> 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