pub struct SaslAuthenticateResponseData {
pub error_code: i16,
pub error_message: Option<KafkaString>,
pub auth_bytes: Bytes,
pub session_lifetime_ms: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§error_code: i16The error code, or 0 if there was no error.
error_message: Option<KafkaString>The error message, or null if there was no error.
auth_bytes: BytesThe SASL authentication bytes from the server, as defined by the SASL mechanism.
session_lifetime_ms: i64Number of milliseconds after which only re-authentication over the existing connection to create a new session can occur.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl SaslAuthenticateResponseData
impl SaslAuthenticateResponseData
pub fn with_error_code(self, value: i16) -> Self
pub fn with_error_message(self, value: Option<KafkaString>) -> Self
pub fn with_auth_bytes(self, value: Bytes) -> Self
pub fn with_session_lifetime_ms(self, value: i64) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for SaslAuthenticateResponseData
impl Clone for SaslAuthenticateResponseData
Source§fn clone(&self) -> SaslAuthenticateResponseData
fn clone(&self) -> SaslAuthenticateResponseData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SaslAuthenticateResponseData
impl Debug for SaslAuthenticateResponseData
Source§impl PartialEq for SaslAuthenticateResponseData
impl PartialEq for SaslAuthenticateResponseData
Source§fn eq(&self, other: &SaslAuthenticateResponseData) -> bool
fn eq(&self, other: &SaslAuthenticateResponseData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SaslAuthenticateResponseData
Auto Trait Implementations§
impl !Freeze for SaslAuthenticateResponseData
impl RefUnwindSafe for SaslAuthenticateResponseData
impl Send for SaslAuthenticateResponseData
impl Sync for SaslAuthenticateResponseData
impl Unpin for SaslAuthenticateResponseData
impl UnsafeUnpin for SaslAuthenticateResponseData
impl UnwindSafe for SaslAuthenticateResponseData
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