Struct SslCredential
pub struct SslCredential(/* private fields */);Available on crate feature
boring only.Expand description
A credential.
Implementations§
§impl SslCredential
impl SslCredential
pub fn builder() -> Result<SslCredentialBuilder, ErrorStack>
pub fn builder() -> Result<SslCredentialBuilder, ErrorStack>
Creates an X.509 credential builder. Configure a chain and private key (or private key method) before adding the built credential to a context or SSL.
This corresponds to SSL_CREDENTIAL_new_x509.
pub fn new_ex_index<T>() -> Result<Index<SslCredential, T>, ErrorStack>
pub fn new_ex_index<T>() -> Result<Index<SslCredential, T>, ErrorStack>
Returns a new extra data index.
Each invocation of this function is guaranteed to return a distinct index. These can be used to store data in the context that can be retrieved later by callbacks, for example.
This corresponds to SSL_C_get_ex_new_index.
Methods from Deref<Target = SslCredentialRef>§
pub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether the credential has the certificate and key material it requires. This does not validate the chain against a trust store.
This corresponds to SSL_CREDENTIAL_is_complete.
pub fn ex_data<T>(&self, index: Index<SslCredential, T>) -> Option<&T>
pub fn ex_data<T>(&self, index: Index<SslCredential, T>) -> Option<&T>
Returns a reference to the extra data at the specified index.
This corresponds to SSL_CREDENTIAL_get_ex_data.
Trait Implementations§
§impl AsMut<SslCredentialRef> for SslCredential
impl AsMut<SslCredentialRef> for SslCredential
§fn as_mut(&mut self) -> &mut SslCredentialRef
fn as_mut(&mut self) -> &mut SslCredentialRef
Converts this type into a mutable reference of the (usually inferred) input type.
§impl AsRef<SslCredentialRef> for SslCredential
impl AsRef<SslCredentialRef> for SslCredential
§fn as_ref(&self) -> &SslCredentialRef
fn as_ref(&self) -> &SslCredentialRef
Converts this type into a shared reference of the (usually inferred) input type.
§impl Borrow<SslCredentialRef> for SslCredential
impl Borrow<SslCredentialRef> for SslCredential
§fn borrow(&self) -> &SslCredentialRef
fn borrow(&self) -> &SslCredentialRef
Immutably borrows from an owned value. Read more
§impl BorrowMut<SslCredentialRef> for SslCredential
impl BorrowMut<SslCredentialRef> for SslCredential
§fn borrow_mut(&mut self) -> &mut SslCredentialRef
fn borrow_mut(&mut self) -> &mut SslCredentialRef
Mutably borrows from an owned value. Read more
§impl Clone for SslCredential
impl Clone for SslCredential
§fn clone(&self) -> SslCredential
fn clone(&self) -> SslCredential
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Deref for SslCredential
impl Deref for SslCredential
§type Target = SslCredentialRef
type Target = SslCredentialRef
The resulting type after dereferencing.
§fn deref(&self) -> &SslCredentialRef
fn deref(&self) -> &SslCredentialRef
Dereferences the value.
§impl DerefMut for SslCredential
impl DerefMut for SslCredential
§fn deref_mut(&mut self) -> &mut SslCredentialRef
fn deref_mut(&mut self) -> &mut SslCredentialRef
Mutably dereferences the value.
§impl Drop for SslCredential
impl Drop for SslCredential
§impl ForeignType for SslCredential
impl ForeignType for SslCredential
§type Ref = SslCredentialRef
type Ref = SslCredentialRef
The type representing a reference to this type.
§unsafe fn from_ptr(ptr: *mut ssl_credential_st) -> SslCredential
unsafe fn from_ptr(ptr: *mut ssl_credential_st) -> SslCredential
Constructs an instance of this type from its raw type. Read more
impl Send for SslCredential
impl Sync for SslCredential
§impl TryFrom<ConnectorConfigClientAuth> for SslCredential
impl TryFrom<ConnectorConfigClientAuth> for SslCredential
§fn try_from(
auth: ConnectorConfigClientAuth,
) -> Result<SslCredential, <SslCredential as TryFrom<ConnectorConfigClientAuth>>::Error>
fn try_from( auth: ConnectorConfigClientAuth, ) -> Result<SslCredential, <SslCredential as TryFrom<ConnectorConfigClientAuth>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SslCredential
impl RefUnwindSafe for SslCredential
impl Unpin for SslCredential
impl UnsafeUnpin for SslCredential
impl UnwindSafe for SslCredential
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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> ⓘ
Converts
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> ⓘ
Converts
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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more