pub enum BuildLoginHttpClientError {
ReadCaFile {
source_env: &'static str,
path: PathBuf,
source: Error,
},
InvalidCaFile {
source_env: &'static str,
path: PathBuf,
detail: String,
},
RegisterCertificate {
source_env: &'static str,
path: PathBuf,
certificate_index: usize,
source: Error,
},
BuildClientWithCustomCa {
source_env: &'static str,
path: PathBuf,
source: Error,
},
BuildClientWithSystemRoots(Error),
RegisterRustlsCertificate {
source_env: &'static str,
path: PathBuf,
certificate_index: usize,
source: Error,
},
}Expand description
Describes why a transport using shared custom CA support could not be constructed.
These failure modes apply to both reqwest client construction and websocket TLS
configuration. A build can fail because the configured CA file could not be read, could not be
parsed as certificates, contained certs that the target TLS stack refused to register, or
because the final reqwest client builder failed. Callers that do not care about the
distinction can rely on the From<BuildCustomCaTransportError> for io::Error conversion.
Variants§
ReadCaFile
Reading the selected CA file from disk failed before any PEM parsing could happen.
InvalidCaFile
The selected CA file was readable, but did not produce usable certificate material.
RegisterCertificate
One parsed certificate block could not be registered with the reqwest client builder.
BuildClientWithCustomCa
Reqwest rejected the final client configuration after a custom CA bundle was loaded.
BuildClientWithSystemRoots(Error)
Reqwest rejected the final client configuration while using only system roots.
RegisterRustlsCertificate
One parsed certificate block could not be registered with the websocket TLS root store.
Trait Implementations§
Source§impl Debug for BuildCustomCaTransportError
impl Debug for BuildCustomCaTransportError
Source§impl Error for BuildCustomCaTransportError
impl Error for BuildCustomCaTransportError
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
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for BuildCustomCaTransportError
impl !UnwindSafe for BuildCustomCaTransportError
impl Freeze for BuildCustomCaTransportError
impl Send for BuildCustomCaTransportError
impl Sync for BuildCustomCaTransportError
impl Unpin for BuildCustomCaTransportError
impl UnsafeUnpin for BuildCustomCaTransportError
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,
impl<T> AsTypeStaticRegistered for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<Error> ErrorExt for Error
impl<Error> ErrorExt for Error
Source§fn context<M>(self, context: M) -> OpaqueError
fn context<M>(self, context: M) -> OpaqueError
Source§fn with_context<C, F>(self, context: F) -> OpaqueError
fn with_context<C, F>(self, context: F) -> OpaqueError
Source§fn into_opaque(self) -> OpaqueError
fn into_opaque(self) -> OpaqueError
OpaqueError. Read moreSource§impl<T> ErrorExt for T
impl<T> ErrorExt for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
impl<T> HasTyVTable for Twhere
T: ?Sized,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, U> RamaTryFrom<T> for Uwhere
U: TryFrom<T>,
impl<T, U> RamaTryFrom<T> for Uwhere
U: TryFrom<T>,
Source§impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for Twhere
U: RamaTryFrom<T, CrateMarker>,
impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for Twhere
U: RamaTryFrom<T, CrateMarker>,
type Error = <U as RamaTryFrom<T, CrateMarker>>::Error
fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T, CrateMarker>>::Error>
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> StarlarkAnyBound for T
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.