pub struct GssapiSaslOptions { /* private fields */ }Available on crate features
sasl-gssapi or sasl only.Expand description
GSSAPI SASL options.
Uses SaslOptions::gssapi to construct one.
Implementations§
Source§impl GssapiSaslOptions
impl GssapiSaslOptions
Sourcepub fn with_username(self, username: impl Into<Cow<'static, str>>) -> Self
Available on crate feature sasl-gssapi and (crate features sasl-digest-md5 or sasl-gssapi) only.
pub fn with_username(self, username: impl Into<Cow<'static, str>>) -> Self
sasl-gssapi and (crate features sasl-digest-md5 or sasl-gssapi) only.Specifies the primary part of Kerberos principal.
It is zookeeper.sasl.client.username in Java client, but the word “client” is misleading
as it is the username of targeting server.
Defaults to “zookeeper”.
Sourcepub fn with_hostname(self, hostname: impl Into<Cow<'static, str>>) -> Self
Available on crate feature sasl-gssapi and (crate features sasl-digest-md5 or sasl-gssapi) only.
pub fn with_hostname(self, hostname: impl Into<Cow<'static, str>>) -> Self
sasl-gssapi and (crate features sasl-digest-md5 or sasl-gssapi) only.Specifies the instance part of Kerberos principal.
Defaults to hostname or ip of targeting server in connecting string.
Trait Implementations§
Source§impl Clone for GssapiSaslOptions
Available on crate feature sasl-gssapi and (crate features sasl-digest-md5 or sasl-gssapi) only.
impl Clone for GssapiSaslOptions
Available on crate feature
sasl-gssapi and (crate features sasl-digest-md5 or sasl-gssapi) only.Source§fn clone(&self) -> GssapiSaslOptions
fn clone(&self) -> GssapiSaslOptions
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 GssapiSaslOptions
Available on crate feature sasl-gssapi and (crate features sasl-digest-md5 or sasl-gssapi) only.
impl Debug for GssapiSaslOptions
Available on crate feature
sasl-gssapi and (crate features sasl-digest-md5 or sasl-gssapi) only.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 GssapiSaslOptions
impl RefUnwindSafe for GssapiSaslOptions
impl Send for GssapiSaslOptions
impl Sync for GssapiSaslOptions
impl Unpin for GssapiSaslOptions
impl UnsafeUnpin for GssapiSaslOptions
impl UnwindSafe for GssapiSaslOptions
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