Enum brane_cfg::errors::CertsError
source · pub enum CertsError {
ClientCertParseError {
err: Err<X509Error>,
},
ClientCertNoCN {
subject: String,
},
FileOpenError {
what: &'static str,
path: PathBuf,
err: Error,
},
FileReadError {
what: &'static str,
path: PathBuf,
err: Error,
},
UnknownItemError {
what: &'static str,
path: PathBuf,
},
CertFileParseError {
path: PathBuf,
err: Error,
},
KeyFileParseError {
path: PathBuf,
err: Error,
},
EmptyCertFile {
path: PathBuf,
},
EmptyKeyFile {
path: PathBuf,
},
}
Expand description
Errors that relate to certificate loading and such.
Variants§
ClientCertParseError
A given certificate file could not be parsed.
ClientCertNoCN
A given certificate did not have the CN
-field specified.
FileOpenError
Failed to open a given file.
FileReadError
Failed to read a given file.
UnknownItemError
Encountered unknown item in the given file.
CertFileParseError
Failed to parse the certificate file.
KeyFileParseError
Failed to parse the key file.
EmptyCertFile
The given certificate file was empty.
EmptyKeyFile
The given keyfile was empty.
Trait Implementations§
source§impl Debug for CertsError
impl Debug for CertsError
source§impl Display for CertsError
impl Display for CertsError
source§impl Error for CertsError
impl Error for CertsError
1.30.0 · 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 CertsError
impl !RefUnwindSafe for CertsError
impl Send for CertsError
impl Sync for CertsError
impl Unpin for CertsError
impl !UnwindSafe for CertsError
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