Struct AuthenticationSASLInitialResponseBuilder

Source
pub struct AuthenticationSASLInitialResponseBuilder<METHOD = LString<'static>, SASL_DATA = Array<'static, u32, u8>>
where METHOD: EncoderFor<LString<'static>>, SASL_DATA: EncoderFor<Array<'static, u32, u8>>,
{ pub method: METHOD, pub sasl_data: SASL_DATA, }

Fields§

§method: METHOD

Name of the SASL authentication mechanism that the client selected.

§sasl_data: SASL_DATA

Mechanism-specific “Initial Response” data.

Trait Implementations§

Source§

impl<METHOD, SASL_DATA> BuilderFor for AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>
where METHOD: EncoderFor<LString<'static>>, SASL_DATA: EncoderFor<Array<'static, u32, u8>>,

Source§

impl<METHOD, SASL_DATA> Debug for AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>
where METHOD: EncoderFor<LString<'static>> + Debug, SASL_DATA: EncoderFor<Array<'static, u32, u8>> + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<METHOD, SASL_DATA> Default for AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>
where METHOD: EncoderFor<LString<'static>> + Default, SASL_DATA: EncoderFor<Array<'static, u32, u8>> + Default,

Source§

fn default() -> AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>

Returns the “default value” for a type. Read more
Source§

impl<METHOD, SASL_DATA> EncoderFor<AuthenticationSASLInitialResponse<'static>> for &AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>
where METHOD: EncoderFor<LString<'static>>, SASL_DATA: EncoderFor<Array<'static, u32, u8>>,

Source§

fn encode_for(&self, buf: &mut BufWriter<'_>)

Source§

impl<METHOD, SASL_DATA> EncoderFor<AuthenticationSASLInitialResponse<'static>> for AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>
where METHOD: EncoderFor<LString<'static>>, SASL_DATA: EncoderFor<Array<'static, u32, u8>>,

Source§

fn encode_for(&self, buf: &mut BufWriter<'_>)

Auto Trait Implementations§

§

impl<METHOD, SASL_DATA> Freeze for AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>
where METHOD: Freeze, SASL_DATA: Freeze,

§

impl<METHOD, SASL_DATA> RefUnwindSafe for AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>
where METHOD: RefUnwindSafe, SASL_DATA: RefUnwindSafe,

§

impl<METHOD, SASL_DATA> Send for AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>
where METHOD: Send, SASL_DATA: Send,

§

impl<METHOD, SASL_DATA> Sync for AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>
where METHOD: Sync, SASL_DATA: Sync,

§

impl<METHOD, SASL_DATA> Unpin for AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>
where METHOD: Unpin, SASL_DATA: Unpin,

§

impl<METHOD, SASL_DATA> UnwindSafe for AuthenticationSASLInitialResponseBuilder<METHOD, SASL_DATA>
where METHOD: UnwindSafe, SASL_DATA: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> EncoderForExt for T
where T: ?Sized,

Source§

fn to_vec<F>(&self) -> Vec<u8>
where F: 'static, Self: EncoderFor<F>,

Convert this builder into a vector of bytes. This is generally not the most efficient way to perform serialization.
Source§

fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>
where F: 'static, Self: EncoderFor<F>,

Encode this builder into a given buffer. If the buffer is too small, the function will return the number of bytes required to encode the builder.
Source§

fn encode_buffer_uninit<'a, F>( &self, buf: &'a mut [MaybeUninit<u8>], ) -> Result<&'a mut [u8], usize>
where F: 'static, Self: EncoderFor<F>,

Encode this builder into a given buffer. If the buffer is too small, the function will return the number of bytes required to encode the builder.
Source§

fn measure<F>(&self) -> usize
where F: 'static, Self: EncoderFor<F>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.