pub struct PasswordAuthenticator<'a> { /* private fields */ }👎Deprecated since 2.1.0:
PasswordAuthenticator is deprecated in favour of StaticPasswordAuthenticator because the second one doesn’t require static lifetime for credentials thus it’s easier to use.Implementations§
Source§impl<'a> PasswordAuthenticator<'a>
impl<'a> PasswordAuthenticator<'a>
pub fn new<'b>( username: &'b str, password: &'b str, ) -> PasswordAuthenticator<'b>
Trait Implementations§
Source§impl<'a> Authenticator for PasswordAuthenticator<'a>
impl<'a> Authenticator for PasswordAuthenticator<'a>
fn get_auth_token(&self) -> CBytes
fn get_cassandra_name(&self) -> Option<&str>
Source§impl<'a> Clone for PasswordAuthenticator<'a>
impl<'a> Clone for PasswordAuthenticator<'a>
Source§fn clone(&self) -> PasswordAuthenticator<'a>
fn clone(&self) -> PasswordAuthenticator<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for PasswordAuthenticator<'a>
impl<'a> RefUnwindSafe for PasswordAuthenticator<'a>
impl<'a> Send for PasswordAuthenticator<'a>
impl<'a> Sync for PasswordAuthenticator<'a>
impl<'a> Unpin for PasswordAuthenticator<'a>
impl<'a> UnwindSafe for PasswordAuthenticator<'a>
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