[−][src]Struct lapin_futures::auth::Credentials
Structure holding the username and passwor for authentication
Methods
impl Credentials
[src]
pub fn new(username: String, password: String) -> Credentials
[src]
Create a new Credentials instance with the given username and password
pub fn username(&self) -> &str
[src]
Get the username
pub fn password(&self) -> &str
[src]
Get the password
pub fn sasl_auth_string(&self, mechanism: SASLMechanism) -> String
[src]
Get the SASL authentication String for the given SASL mechanism
pub fn rabbit_cr_demo_answer(&self) -> String
[src]
Get the answer we need to give to the server for the RabbitCrDemo mehanism
Trait Implementations
impl Clone for Credentials
[src]
fn clone(&self) -> Credentials
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Credentials
[src]
impl Default for Credentials
[src]
fn default() -> Credentials
[src]
impl Eq for Credentials
[src]
impl From<AMQPUserInfo> for Credentials
[src]
fn from(user_info: AMQPUserInfo) -> Credentials
[src]
impl PartialEq<Credentials> for Credentials
[src]
fn eq(&self, other: &Credentials) -> bool
[src]
fn ne(&self, other: &Credentials) -> bool
[src]
impl StructuralEq for Credentials
[src]
impl StructuralPartialEq for Credentials
[src]
Auto Trait Implementations
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,