Enum brane_cli::errors::CertsError
source · pub enum CertsError {
Show 25 variants
ActiveInstanceNotASoftlinkError {
path: PathBuf,
},
CertParseError {
path: PathBuf,
i: usize,
err: Err<X509Error>,
},
CertExtensionsError {
path: PathBuf,
i: usize,
err: X509Error,
},
CertNoKeyUsageError {
path: PathBuf,
i: usize,
},
CertAmbigiousUsageError {
path: PathBuf,
i: usize,
},
CertNoUsageError {
path: PathBuf,
i: usize,
},
CertIssuerCaError {
path: PathBuf,
i: usize,
err: X509Error,
},
InstanceDirError {
err: UtilError,
},
UnknownInstance {
name: String,
},
ActiveInstanceReadError {
err: InstanceError,
},
InstancePathError {
name: String,
err: InstanceError,
},
PemLoadError {
path: PathBuf,
err: Error,
},
NoCaCert,
NoClientCert,
NoClientKey,
NoDomainName,
ConfirmationError {
err: Error,
},
CertsDirNotADir {
path: PathBuf,
},
CertsDirRemoveError {
path: PathBuf,
err: Error,
},
CertsDirCreateError {
path: PathBuf,
err: Error,
},
FileOpenError {
what: &'static str,
path: PathBuf,
err: Error,
},
FileWriteError {
what: &'static str,
path: PathBuf,
err: Error,
},
InstancesDirError {
err: UtilError,
},
DirReadError {
what: &'static str,
path: PathBuf,
err: Error,
},
DirEntryReadError {
what: &'static str,
path: PathBuf,
entry: usize,
err: Error,
},
}
Expand description
Collects errors relating to certificate management.
Variants§
ActiveInstanceNotASoftlinkError
The active instance file exists but is not a softlink.
CertParseError
Failed to parse the name in a certificate.
CertExtensionsError
Failed to get the extensions from the given certificate.
CertNoKeyUsageError
Did not find the key usage extension in the given certificate.
CertAmbigiousUsageError
The given certificate had an ambigious key usage flag set.
CertNoUsageError
The given certificate had no (valid) key usage flag set.
CertIssuerCaError
Failed to get the issuer CA string.
InstanceDirError
Failed to load instance directory.
UnknownInstance
An unknown instance was given.
ActiveInstanceReadError
Failed to read the directory behind the active instance link.
Fields
err: InstanceError
InstancePathError
Failed to get the path behind an instance name.
PemLoadError
Did not manage to load (one of) the given PEM files.
NoCaCert
No CA certificate was provided.
NoClientCert
No client certificate was provided.
NoClientKey
The no client key was provided.
NoDomainName
No domain name found in the certificates.
ConfirmationError
Failed to ask the user for confirmation.
CertsDirNotADir
The given certs directory existed but was not a directory.
CertsDirRemoveError
Failed to remove the certificates directory.
CertsDirCreateError
Failed to create the certificates directory.
FileOpenError
Failed to open the given file in append mode.
FileWriteError
Failed to write to the given file.
InstancesDirError
Failed to load instances directory.
DirReadError
Failed to read the directory with instances.
DirEntryReadError
Failed to read a specific entry within the directory with instances.
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
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 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
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> ErrorTrace for T
impl<T> ErrorTrace for T
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