pub struct GSSENCRequest<'a> { /* private fields */ }Expand description
The GSSENCRequest struct represents a message requesting GSSAPI encryption.
Available fields:
-
mlen: Length of message contents in bytes, including self. (value =8) -
gssenc_request_code: The GSSAPI Encryption request code. (value =80877104)
Implementations§
Source§impl<'a> GSSENCRequest<'a>
impl<'a> GSSENCRequest<'a>
Sourcepub const fn is_buffer(buf: &'a [u8]) -> bool
pub const fn is_buffer(buf: &'a [u8]) -> bool
Checks the constant values for this struct to determine whether this message matches.
Sourcepub fn new(buf: &'a [u8]) -> Result<Self, ParseError>
pub fn new(buf: &'a [u8]) -> Result<Self, ParseError>
Creates a new instance of this struct from a given buffer.
Sourcepub fn gssenc_request_code(&self) -> i32
pub fn gssenc_request_code(&self) -> i32
The GSSAPI Encryption request code.
pub fn to_vec(self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl AsRef<[u8]> for GSSENCRequest<'_>
impl AsRef<[u8]> for GSSENCRequest<'_>
Source§impl<'a> Clone for GSSENCRequest<'a>
impl<'a> Clone for GSSENCRequest<'a>
Source§fn clone(&self) -> GSSENCRequest<'a>
fn clone(&self) -> GSSENCRequest<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> DataType for GSSENCRequest<'a>
impl<'a> DataType for GSSENCRequest<'a>
const META: StructFieldMeta
fn encode_usize(buf: &mut BufWriter<'_>, value: usize)
fn decode_usize(buf: &mut &[u8]) -> Result<usize, ParseError>
Source§impl Debug for GSSENCRequest<'_>
impl Debug for GSSENCRequest<'_>
Source§impl<'a> DecoderFor<'a, GSSENCRequest<'a>> for GSSENCRequest<'a>
impl<'a> DecoderFor<'a, GSSENCRequest<'a>> for GSSENCRequest<'a>
fn decode_for(buf: &mut &'a [u8]) -> Result<Self, ParseError>
Source§impl<'a> Default for GSSENCRequest<'a>
impl<'a> Default for GSSENCRequest<'a>
Source§fn default() -> GSSENCRequest<'a>
fn default() -> GSSENCRequest<'a>
Source§impl EncoderFor<GSSENCRequest<'static>> for &GSSENCRequestBuilder
impl EncoderFor<GSSENCRequest<'static>> for &GSSENCRequestBuilder
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl<'a> EncoderFor<GSSENCRequest<'static>> for GSSENCRequest<'a>
impl<'a> EncoderFor<GSSENCRequest<'static>> for GSSENCRequest<'a>
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl EncoderFor<GSSENCRequest<'static>> for GSSENCRequestBuilder
impl EncoderFor<GSSENCRequest<'static>> for GSSENCRequestBuilder
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl PartialEq for GSSENCRequest<'_>
impl PartialEq for GSSENCRequest<'_>
Source§impl<'a> StructMeta for GSSENCRequest<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for GSSENCRequest<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = GSSENCRequest<'__struct>
fn new<'__next_lifetime>( buf: &'__next_lifetime [u8], ) -> Result<Self::Struct<'__next_lifetime>, ParseError>
fn to_vec(&self) -> Vec<u8> ⓘ
const FIELD_COUNT: usize = _
const IS_FIXED_SIZE: bool = _
const FIXED_SIZE: Option<usize> = _
const LENGTH_FIELD_INDEX: Option<usize> = _
const HAS_LENGTH_FIELD: bool = _
impl<'a> Copy for GSSENCRequest<'a>
impl Eq for GSSENCRequest<'_>
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for GSSENCRequest<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFixedSize<{<$name<'_> as $crate::prelude::StructMeta>::IS_FIXED_SIZE}> for GSSENCRequest<'_>
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.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for GSSENCRequest<'_>
Implements a trait indicating that the struct has a length field.