Struct scylla::authentication::PlainTextAuthenticator
source · pub struct PlainTextAuthenticator { /* private fields */ }
Expand description
Default authenticator provider that requires username and password if authentication is required.
Implementations§
source§impl PlainTextAuthenticator
impl PlainTextAuthenticator
sourcepub fn new(username: String, password: String) -> Self
pub fn new(username: String, password: String) -> Self
Creates new PlainTextAuthenticator
instance with provided username and password.
Trait Implementations§
source§impl AuthenticatorProvider for PlainTextAuthenticator
impl AuthenticatorProvider for PlainTextAuthenticator
source§fn start_authentication_session<'life0, 'life1, 'async_trait>(
&'life0 self,
_authenticator_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(Option<Vec<u8>>, Box<dyn AuthenticatorSession>), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start_authentication_session<'life0, 'life1, 'async_trait>(
&'life0 self,
_authenticator_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(Option<Vec<u8>>, Box<dyn AuthenticatorSession>), AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
A pair of initial response and boxed
AuthenticatorSession
should be returned if authentication is required by the server.Auto Trait Implementations§
impl Freeze for PlainTextAuthenticator
impl RefUnwindSafe for PlainTextAuthenticator
impl Send for PlainTextAuthenticator
impl Sync for PlainTextAuthenticator
impl Unpin for PlainTextAuthenticator
impl UnwindSafe for PlainTextAuthenticator
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> 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