#[non_exhaustive]pub struct SaslHandshakeRequest {
pub mechanism: StrBytes,
}
Expand description
Valid versions: 0-1
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.mechanism: StrBytes
The SASL mechanism chosen by the client.
Supported API versions: 0-1
Implementations§
Source§impl SaslHandshakeRequest
impl SaslHandshakeRequest
Sourcepub fn with_mechanism(self, value: StrBytes) -> Self
pub fn with_mechanism(self, value: StrBytes) -> Self
Sets mechanism
to the passed value.
The SASL mechanism chosen by the client.
Supported API versions: 0-1
Trait Implementations§
Source§impl Clone for SaslHandshakeRequest
impl Clone for SaslHandshakeRequest
Source§fn clone(&self) -> SaslHandshakeRequest
fn clone(&self) -> SaslHandshakeRequest
Returns a copy 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 moreSource§impl Debug for SaslHandshakeRequest
impl Debug for SaslHandshakeRequest
Source§impl Decodable for SaslHandshakeRequest
Available on crate feature broker
only.
impl Decodable for SaslHandshakeRequest
Available on crate feature
broker
only.Source§impl Default for SaslHandshakeRequest
impl Default for SaslHandshakeRequest
Source§impl Encodable for SaslHandshakeRequest
Available on crate feature client
only.
impl Encodable for SaslHandshakeRequest
Available on crate feature
client
only.Source§impl From<SaslHandshakeRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<SaslHandshakeRequest> for RequestKind
Available on crate feature
messages_enums
only.Source§fn from(value: SaslHandshakeRequest) -> RequestKind
fn from(value: SaslHandshakeRequest) -> RequestKind
Converts to this type from the input type.
Source§impl HeaderVersion for SaslHandshakeRequest
impl HeaderVersion for SaslHandshakeRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Maps a header version to a given version for a particular API message.
Source§impl Message for SaslHandshakeRequest
impl Message for SaslHandshakeRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
The valid versions for this message.
Source§const DEPRECATED_VERSIONS: Option<VersionRange>
const DEPRECATED_VERSIONS: Option<VersionRange>
The deprecated versions for this message.
Source§impl PartialEq for SaslHandshakeRequest
impl PartialEq for SaslHandshakeRequest
Source§impl Request for SaslHandshakeRequest
Available on crate features client
and broker
only.
impl Request for SaslHandshakeRequest
Available on crate features
client
and broker
only.impl StructuralPartialEq for SaslHandshakeRequest
Auto Trait Implementations§
impl !Freeze for SaslHandshakeRequest
impl RefUnwindSafe for SaslHandshakeRequest
impl Send for SaslHandshakeRequest
impl Sync for SaslHandshakeRequest
impl Unpin for SaslHandshakeRequest
impl UnwindSafe for SaslHandshakeRequest
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