pub enum InfoError<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
Failed to serialize the config to a string.
Fields
§
err: E
WriterSerializeError
Failed to serialize the config to a given writer.
Fields
§
err: E
FileSerializeError
Failed to serialize the config to a given file.
StringDeserializeError
Failed to deserialize a string to the config.
Fields
§
err: E
ReaderDeserializeError
Failed to deserialize a reader to the config.
Fields
§
err: E
FileDeserializeError
Failed to deserialize a file to the config.
Trait Implementations§
source§impl<E: 'static + Error> Error for InfoError<E>
impl<E: 'static + Error> Error for InfoError<E>
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<E> Freeze for InfoError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for InfoError<E>
impl<E> Send for InfoError<E>where
E: Send,
impl<E> Sync for InfoError<E>where
E: Sync,
impl<E> Unpin for InfoError<E>where
E: Unpin,
impl<E> !UnwindSafe for InfoError<E>
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> 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