Enum brane_tsk::errors::PreprocessError
source · pub enum PreprocessError {
Show 28 variants
UnavailableData {
name: DataName,
},
NodeConfigReadError {
path: PathBuf,
err: YamlError,
},
InfraReadError {
path: PathBuf,
err: Error,
},
UnknownLocationError {
loc: Location,
},
ProxyError {
err: Box<dyn Send + Sync + Error + 'static>,
},
GrpcConnectError {
endpoint: Address,
err: Error,
},
GrpcRequestError {
what: &'static str,
endpoint: Address,
err: Status,
},
AccessKindParseError {
endpoint: Address,
raw: String,
err: Error,
},
FileReadError {
what: &'static str,
path: PathBuf,
err: Error,
},
IdentityFileError {
path: PathBuf,
err: Error,
},
CertificateError {
path: PathBuf,
err: Error,
},
LocationResolve {
id: String,
err: DomainRegistryCacheError,
},
DirNotADirError {
what: &'static str,
path: PathBuf,
},
DirNotExistsError {
what: &'static str,
path: PathBuf,
},
DirRemoveError {
what: &'static str,
path: PathBuf,
err: Error,
},
DirCreateError {
what: &'static str,
path: PathBuf,
err: Error,
},
ProxyCreateError {
address: Address,
err: Error,
},
ClientCreateError {
err: Error,
},
DownloadRequestError {
address: String,
err: Error,
},
DownloadRequestFailure {
address: String,
code: StatusCode,
message: Option<String>,
},
DownloadStreamError {
address: String,
err: Error,
},
TarCreateError {
path: PathBuf,
err: Error,
},
TarOpenError {
path: PathBuf,
err: Error,
},
TarWriteError {
path: PathBuf,
err: Error,
},
DataExtractError {
err: Error,
},
AccessKindSerializeError {
err: Error,
},
BackendFileError {
err: Error,
},
UnsupportedBackend {
what: &'static str,
},
}
Expand description
Defines common errors that occur when trying to preprocess datasets.
Variants§
The dataset was still unavailable after preprocessing
NodeConfigReadError
Failed to load the node config file.
InfraReadError
Failed to load the infra file.
UnknownLocationError
The given location was unknown.
ProxyError
Failed to connect to a proxy.
GrpcConnectError
Failed to connect to a delegate node with gRPC
GrpcRequestError
Failed to send a preprocess request to a delegate node with gRPC
AccessKindParseError
Failed to re-serialize the access kind.
FileReadError
Failed to open/read a given file.
IdentityFileError
Failed to parse an identity file.
CertificateError
Failed to parse a certificate.
LocationResolve
Failed to resolve a location identifier to a registry address.
DirNotADirError
A directory was not a directory but a file.
DirNotExistsError
A directory what not a directory because it didn’t exist.
DirRemoveError
A directory could not be removed.
DirCreateError
A directory could not be created.
ProxyCreateError
Failed to create a reqwest proxy object.
ClientCreateError
Failed to create a reqwest client.
Fields
err: Error
DownloadRequestError
Failed to send a GET-request to fetch the data.
DownloadRequestFailure
The given download request failed with a non-success status code.
DownloadStreamError
Failed to reach the next chunk of data.
TarCreateError
Failed to create the file to which we write the download stream.
TarOpenError
Failed to (re-)open the file to which we’ve written the download stream.
TarWriteError
Failed to write to the file where we write the download stream.
DataExtractError
Failed to extract the downloaded tar.
AccessKindSerializeError
Failed to serialize the preprocessrequest.
BackendFileError
Failed to parse the backend file.
UnsupportedBackend
The given backend type is not (yet) supported.
Trait Implementations§
source§impl Debug for PreprocessError
impl Debug for PreprocessError
source§impl Display for PreprocessError
impl Display for PreprocessError
source§impl Error for PreprocessError
impl Error for PreprocessError
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 PreprocessError
impl !RefUnwindSafe for PreprocessError
impl Send for PreprocessError
impl Sync for PreprocessError
impl Unpin for PreprocessError
impl !UnwindSafe for PreprocessError
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> 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