pub struct Sasl { /* private fields */ }Expand description
How the broker authenticates the connection, mapped onto the client’s SASL profiles.
Constructed with the per-mechanism constructors and passed to
AmqpBroker::sasl. A URL of the form amqp://user:pass@host also
selects PLAIN implicitly; an explicit profile set here wins.
§Examples
use ruststream_amqp::Sasl;
let sasl = Sasl::plain("svc", "secret");Implementations§
Source§impl Sasl
impl Sasl
Sourcepub fn anonymous() -> Self
pub fn anonymous() -> Self
SASL ANONYMOUS: no credentials, for brokers that allow unauthenticated connections.
§Examples
use ruststream_amqp::Sasl;
let sasl = Sasl::anonymous();Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sasl
impl RefUnwindSafe for Sasl
impl Send for Sasl
impl Sync for Sasl
impl Unpin for Sasl
impl UnsafeUnpin for Sasl
impl UnwindSafe for Sasl
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