Enum wtransport::tls::error::PemLoadError
source · pub enum PemLoadError {
InvalidCertificateChain {
index: usize,
error: InvalidCertificate,
},
NoPrivateKeySection,
NoCertificateSection,
FileError {
file: PathBuf,
error: Error,
},
}
Expand description
Error during PEM load operation.
Variants§
InvalidCertificateChain
Invalid certificate during chain load.
Fields
§
error: InvalidCertificate
Additional error information.
NoPrivateKeySection
Cannot load the private key as the PEM file does not contain it.
NoCertificateSection
Cannot load the certificate as the PEM file does not contain it.
FileError
I/O operation encoding/decoding PEM file failed.
Trait Implementations§
source§impl Debug for PemLoadError
impl Debug for PemLoadError
source§impl Display for PemLoadError
impl Display for PemLoadError
source§impl Error for PemLoadError
impl Error for PemLoadError
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 PemLoadError
impl !RefUnwindSafe for PemLoadError
impl Send for PemLoadError
impl Sync for PemLoadError
impl Unpin for PemLoadError
impl !UnwindSafe for PemLoadError
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<S> IntoConnectOptions for Swhere
S: ToString,
impl<S> IntoConnectOptions for Swhere
S: ToString,
source§fn into_options(self) -> ConnectOptions
fn into_options(self) -> ConnectOptions
Perform value-to-value conversion into
ConnectOptions
.