Struct AuthenticationSASLContinue

Source
pub struct AuthenticationSASLContinue<'a> { /* private fields */ }
Expand description

The AuthenticationSASLContinue struct represents a SASL challenge.

Available fields:

  • mtype: Identifies the message as authentication SASL continue. (value = 'R')

  • mlen: Length of message contents in bytes, including self.

  • auth_status: Specifies that this message contains a SASL challenge. (value = 0x0B)

  • sasl_data: Mechanism-specific SASL data.

Implementations§

Source§

impl<'a> AuthenticationSASLContinue<'a>

Source

pub const fn is_buffer(buf: &'a [u8]) -> bool

Checks the constant values for this struct to determine whether this message matches.

Source

pub fn new(buf: &'a [u8]) -> Result<Self, ParseError>

Creates a new instance of this struct from a given buffer.

Source

pub fn mtype(&self) -> u8

Identifies the message as authentication SASL continue.

Source

pub fn mlen(&self) -> Length

Length of message contents in bytes, including self.

Source

pub fn auth_status(&self) -> i32

Specifies that this message contains a SASL challenge.

Source

pub fn sasl_data(&self) -> Array<'a, u32, u8>

Mechanism-specific SASL data.

Source

pub fn to_vec(self) -> Vec<u8>

Trait Implementations§

Source§

impl AsRef<[u8]> for AuthenticationSASLContinue<'_>

Source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<'a> Clone for AuthenticationSASLContinue<'a>

Source§

fn clone(&self) -> AuthenticationSASLContinue<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> DataType for AuthenticationSASLContinue<'a>

Source§

impl Debug for AuthenticationSASLContinue<'_>

Source§

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

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

impl<'a> DecoderFor<'a, AuthenticationSASLContinue<'a>> for AuthenticationSASLContinue<'a>

Source§

fn decode_for(buf: &mut &'a [u8]) -> Result<Self, ParseError>

Source§

impl<'a> Default for AuthenticationSASLContinue<'a>

Source§

fn default() -> AuthenticationSASLContinue<'a>

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

impl<SASL_DATA> EncoderFor<AuthenticationSASLContinue<'static>> for &AuthenticationSASLContinueBuilder<SASL_DATA>
where SASL_DATA: EncoderFor<Array<'static, u32, u8>>,

Source§

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

Source§

impl<'a> EncoderFor<AuthenticationSASLContinue<'static>> for AuthenticationSASLContinue<'a>

Source§

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

Source§

impl<SASL_DATA> EncoderFor<AuthenticationSASLContinue<'static>> for AuthenticationSASLContinueBuilder<SASL_DATA>
where SASL_DATA: EncoderFor<Array<'static, u32, u8>>,

Source§

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

Source§

impl PartialEq for AuthenticationSASLContinue<'_>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> StructMeta for AuthenticationSASLContinue<'a>

Implements a trait containing the fields of the struct, allowing us to compute some useful things.

Source§

const FIELDS: StructFields

Source§

type Struct<'__struct> = AuthenticationSASLContinue<'__struct>

Source§

fn new<'__next_lifetime>( buf: &'__next_lifetime [u8], ) -> Result<Self::Struct<'__next_lifetime>, ParseError>

Source§

fn to_vec(&self) -> Vec<u8>

Source§

const FIELD_COUNT: usize = _

Source§

const IS_FIXED_SIZE: bool = _

Source§

const FIXED_SIZE: Option<usize> = _

Source§

const LENGTH_FIELD_INDEX: Option<usize> = _

Source§

const HAS_LENGTH_FIELD: bool = _

Source§

impl<'a> Copy for AuthenticationSASLContinue<'a>

Source§

impl Eq for AuthenticationSASLContinue<'_>

Source§

impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationSASLContinue<'_>

Implements a trait indicating that the struct has a field count.

Source§

impl StructAttributeFixedSize<{<$name<'_> as $crate::prelude::StructMeta>::IS_FIXED_SIZE}> for AuthenticationSASLContinue<'_>

Implements a trait indicating that the struct has a fixed size. This needs to be a trait-generic rather than and associated constant for us to use elsewhere.

Source§

impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for AuthenticationSASLContinue<'_>

Implements a trait indicating that the struct has a length field.

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> EncoderFor<Rest<'static>> for T
where T: AsRef<[u8]>,

Source§

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

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> StructLength for T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.