pub struct SaslOptions(/* private fields */);Available on crate features
sasl-digest-md5 or sasl-gssapi or sasl only.Expand description
Client side SASL options.
Implementations§
Source§impl SaslOptions
impl SaslOptions
Sourcepub fn gssapi() -> GssapiSaslOptions
Available on crate features sasl-gssapi or sasl only.
pub fn gssapi() -> GssapiSaslOptions
sasl-gssapi or sasl 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-digest-md5 or sasl only.
pub fn digest_md5( username: impl Into<Cow<'static, str>>, password: impl Into<Cow<'static, str>>, ) -> DigestMd5SaslOptions
sasl-digest-md5 or sasl only.Construct a DigestMd5SaslOptions for further customization.
Trait Implementations§
Source§impl Clone for SaslOptions
Available on crate features sasl-digest-md5 or sasl-gssapi only.
impl Clone for SaslOptions
Available on crate features
sasl-digest-md5 or sasl-gssapi only.Source§fn clone(&self) -> SaslOptions
fn clone(&self) -> SaslOptions
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 moreSource§impl Debug for SaslOptions
Available on crate features sasl-digest-md5 or sasl-gssapi only.
impl Debug for SaslOptions
Available on crate features
sasl-digest-md5 or sasl-gssapi only.Source§impl From<DigestMd5SaslOptions> for SaslOptions
Available on crate feature sasl-digest-md5 and (crate features sasl-digest-md5 or sasl-gssapi) only.
impl From<DigestMd5SaslOptions> for SaslOptions
Available on crate feature
sasl-digest-md5 and (crate features sasl-digest-md5 or sasl-gssapi) only.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
Available on crate feature sasl-gssapi and (crate features sasl-digest-md5 or sasl-gssapi) only.
impl From<GssapiSaslOptions> for SaslOptions
Available on crate feature
sasl-gssapi and (crate features sasl-digest-md5 or sasl-gssapi) only.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 UnsafeUnpin 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
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,
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