Enum brane_tsk::errors::CommitError
source · pub enum CommitError {
Show 19 variants
UnavailableDataError {
name: String,
locs: Vec<String>,
},
DataDirNotADir {
path: PathBuf,
},
DataDirCreateError {
path: PathBuf,
err: Error,
},
DataInfoCreateError {
path: PathBuf,
err: Error,
},
DataInfoSerializeError {
err: Error,
},
DataInfoWriteError {
path: PathBuf,
err: Error,
},
DirReadError {
path: PathBuf,
err: Error,
},
DirEntryReadError {
path: PathBuf,
i: usize,
err: Error,
},
DataCopyError {
err: Error,
},
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,
},
AssetInfoReadError {
path: PathBuf,
err: AssetInfoError,
},
FileRemoveError {
path: PathBuf,
err: Error,
},
DirRemoveError {
path: PathBuf,
err: Error,
},
PathNotFileNotDir {
path: PathBuf,
},
}
Expand description
Defines common errors that occur when trying to commit an intermediate result.
Variants§
The given dataset was unavailable locally
DataDirNotADir
The generated path of a data is not a directory
DataDirCreateError
Could not create the new data directory
DataInfoCreateError
Failed to create a new DataInfo file.
DataInfoSerializeError
Failed to serialize a new DataInfo file.
DataInfoWriteError
Failed to write the DataInfo the the created file.
DirReadError
Failed to read the given directory.
DirEntryReadError
Failed to read the given directory entry.
DataCopyError
Failed to copy the data
NodeConfigReadError
Failed to load the node config file.
InfraReadError
Failed to load the infra file.
UnknownLocationError
The given location was unknown.
ProxyError
Failed to prepare the proxy service.
GrpcConnectError
Failed to connect to a delegate node with gRPC
GrpcRequestError
Failed to send a preprocess request to a delegate node with gRPC
AssetInfoReadError
Failed to read the AssetInfo file.
FileRemoveError
Failed to remove a file.
DirRemoveError
Failed to remove a directory.
PathNotFileNotDir
A given path is neither a file nor a directory.
Trait Implementations§
source§impl Debug for CommitError
impl Debug for CommitError
source§impl Display for CommitError
impl Display for CommitError
source§impl Error for CommitError
impl Error for CommitError
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 CommitError
impl !RefUnwindSafe for CommitError
impl Send for CommitError
impl Sync for CommitError
impl Unpin for CommitError
impl !UnwindSafe for CommitError
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