Enum brane_cfg::errors::ConfigError
source · pub enum ConfigError<E: Debug> {
OutputCreateError {
path: PathBuf,
err: Error,
},
InputOpenError {
path: PathBuf,
err: Error,
},
InputReadError {
path: PathBuf,
err: Error,
},
StringSerializeError {
err: E,
},
WriterSerializeError {
err: E,
},
FileSerializeError {
path: PathBuf,
err: E,
},
StringDeserializeError {
err: E,
},
ReaderDeserializeError {
err: E,
},
FileDeserializeError {
path: PathBuf,
err: E,
},
}
Expand description
Defines general errors for configs.
Variants§
OutputCreateError
Failed to create the output file.
InputOpenError
Failed to open the input file.
InputReadError
Failed to read the input file.
StringSerializeError
Fields
§
err: E
Failed to serialize the config to a string.
WriterSerializeError
Fields
§
err: E
Failed to serialize the config to a given writer.
FileSerializeError
Failed to serialize the config to a given file.
StringDeserializeError
Fields
§
err: E
Failed to deserialize a string to the config.
ReaderDeserializeError
Fields
§
err: E
Failed to deserialize a reader to the config.
FileDeserializeError
Failed to deserialize a file to the config.
Trait Implementations§
Auto Trait Implementations§
impl<E> !RefUnwindSafe for ConfigError<E>
impl<E> Send for ConfigError<E>where E: Send,
impl<E> Sync for ConfigError<E>where E: Sync,
impl<E> Unpin for ConfigError<E>where E: Unpin,
impl<E> !UnwindSafe for ConfigError<E>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§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> 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