Struct ntex_amqp_codec::protocol::SaslInit
source · pub struct SaslInit {
pub mechanism: Symbol,
pub initial_response: Option<Bytes>,
pub hostname: Option<ByteString>,
}
Fields§
§mechanism: Symbol
§initial_response: Option<Bytes>
§hostname: Option<ByteString>
Implementations§
source§impl SaslInit
impl SaslInit
pub fn mechanism(&self) -> &Symbol
pub fn mechanism_mut(&mut self) -> &mut Symbol
pub fn initial_response(&self) -> Option<&Bytes>
pub fn initial_response_mut(&mut self) -> Option<&mut Bytes>
pub fn hostname(&self) -> Option<&ByteString>
pub fn hostname_mut(&mut self) -> Option<&mut ByteString>
Trait Implementations§
source§impl PartialEq for SaslInit
impl PartialEq for SaslInit
impl Eq for SaslInit
impl StructuralPartialEq for SaslInit
Auto Trait Implementations§
impl Freeze for SaslInit
impl !RefUnwindSafe for SaslInit
impl Send for SaslInit
impl Sync for SaslInit
impl Unpin for SaslInit
impl !UnwindSafe for SaslInit
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