pub struct GssapiSaslOptions { /* private fields */ }
Available on crate features
sasl
or sasl-gssapi
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
pub fn with_username(self, username: impl Into<Cow<'static, str>>) -> Self
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
pub fn with_hostname(self, hostname: impl Into<Cow<'static, str>>) -> Self
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
impl Clone for GssapiSaslOptions
Source§fn clone(&self) -> GssapiSaslOptions
fn clone(&self) -> GssapiSaslOptions
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 GssapiSaslOptions
impl Debug for GssapiSaslOptions
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 GssapiSaslOptions
impl RefUnwindSafe for GssapiSaslOptions
impl Send for GssapiSaslOptions
impl Sync for GssapiSaslOptions
impl Unpin 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
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