pub struct SaslHandshakeResponseBuilder { /* private fields */ }
Expand description
Builder for SaslHandshakeResponse
.
Implementations§
source§impl SaslHandshakeResponseBuilder
impl SaslHandshakeResponseBuilder
sourcepub fn error_code(&mut self, value: i16) -> &mut Self
pub fn error_code(&mut self, value: i16) -> &mut Self
The error code, or 0 if there was no error.
Supported API versions: 0-1
sourcepub fn mechanisms(&mut self, value: Vec<StrBytes>) -> &mut Self
pub fn mechanisms(&mut self, value: Vec<StrBytes>) -> &mut Self
The mechanisms enabled in the server.
Supported API versions: 0-1
sourcepub fn build(
&self
) -> Result<SaslHandshakeResponse, SaslHandshakeResponseBuilderError>
pub fn build(
&self
) -> Result<SaslHandshakeResponse, SaslHandshakeResponseBuilderError>
Trait Implementations§
source§impl Clone for SaslHandshakeResponseBuilder
impl Clone for SaslHandshakeResponseBuilder
source§fn clone(&self) -> SaslHandshakeResponseBuilder
fn clone(&self) -> SaslHandshakeResponseBuilder
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 more