pub struct SaslOptions(/* private fields */);
Available on crate features
sasl
or sasl-gssapi
or sasl-digest-md5
only.Expand description
Client side SASL options.
Implementations§
Source§impl SaslOptions
impl SaslOptions
Sourcepub fn gssapi() -> GssapiSaslOptions
Available on crate features sasl
or sasl-gssapi
only.
pub fn gssapi() -> GssapiSaslOptions
sasl
or sasl-gssapi
only.Constructs a default GssapiSaslOptions for further customization.
Make sure localhost is granted by Kerberos KDC, unlike Java counterpart this library provides no mean to grant ticket from KDC but simply utilizes whatever the ticket cache have.
Sourcepub fn digest_md5(
username: impl Into<Cow<'static, str>>,
password: impl Into<Cow<'static, str>>,
) -> DigestMd5SaslOptions
Available on crate features sasl
or sasl-digest-md5
only.
pub fn digest_md5( username: impl Into<Cow<'static, str>>, password: impl Into<Cow<'static, str>>, ) -> DigestMd5SaslOptions
sasl
or sasl-digest-md5
only.Construct a DigestMd5SaslOptions for further customization.
Trait Implementations§
Source§impl Clone for SaslOptions
impl Clone for SaslOptions
Source§fn clone(&self) -> SaslOptions
fn clone(&self) -> SaslOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SaslOptions
impl Debug for SaslOptions
Source§impl From<DigestMd5SaslOptions> for SaslOptions
impl From<DigestMd5SaslOptions> for SaslOptions
Source§fn from(options: DigestMd5SaslOptions) -> Self
fn from(options: DigestMd5SaslOptions) -> Self
Converts to this type from the input type.
Source§impl From<GssapiSaslOptions> for SaslOptions
impl From<GssapiSaslOptions> for SaslOptions
Source§fn from(options: GssapiSaslOptions) -> Self
fn from(options: GssapiSaslOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SaslOptions
impl RefUnwindSafe for SaslOptions
impl Send for SaslOptions
impl Sync for SaslOptions
impl Unpin for SaslOptions
impl UnwindSafe for SaslOptions
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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