Struct SslMethod
pub struct SslMethod { /* private fields */ }Expand description
A type specifying the kind of protocol an SslContext will speak.
Implementations§
§impl SslMethod
impl SslMethod
pub fn tls() -> SslMethod
pub fn tls() -> SslMethod
Support all versions of the TLS protocol.
This corresponds to TLS_method.
pub unsafe fn tls_with_buffer() -> SslMethod
pub unsafe fn tls_with_buffer() -> SslMethod
Same as tls, but doesn’t create X.509 for certificates.
§Safety
BoringSSL will crash if the user calls a function that involves X.509 certificates with an object configured with this method. You most probably don’t need it.
pub fn dtls() -> SslMethod
pub fn dtls() -> SslMethod
Support all versions of the DTLS protocol.
This corresponds to DTLS_method.
pub fn tls_client() -> SslMethod
pub fn tls_client() -> SslMethod
Support all versions of the TLS protocol, explicitly as a client.
This corresponds to TLS_client_method.
pub fn tls_server() -> SslMethod
pub fn tls_server() -> SslMethod
Support all versions of the TLS protocol, explicitly as a server.
This corresponds to TLS_server_method.
pub unsafe fn from_ptr(ptr: *const ssl_method_st) -> SslMethod
pub unsafe fn from_ptr(ptr: *const ssl_method_st) -> SslMethod
Constructs an SslMethod from a pointer to the underlying OpenSSL value.
This method assumes that the SslMethod is not configured for X.509
certificates. The user can call SslMethod::assume_x509_method
to change that.
§Safety
The caller must ensure the pointer is valid.
This corresponds to TLS_server_method.
pub unsafe fn assume_x509(&mut self)
pub unsafe fn assume_x509(&mut self)
Assumes that this SslMethod is configured for X.509 certificates.
§Safety
BoringSSL will crash if the user calls a function that involves X.509 certificates with an object configured with this method. You most probably don’t need it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SslMethod
impl RefUnwindSafe for SslMethod
impl Unpin for SslMethod
impl UnsafeUnpin for SslMethod
impl UnwindSafe for SslMethod
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
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> ⓘ
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 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>
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>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more