pub struct SetKeyDescriptor<'de> { /* private fields */ }Expand description
The wire type corresponding to SetKeyDescriptor.
Implementations§
Source§impl<'de> SetKeyDescriptor<'de>
impl<'de> SetKeyDescriptor<'de>
pub fn key(&self) -> Option<&Vector<'de, u8>>
pub fn take_key(&mut self) -> Option<Vector<'de, u8>>
pub fn key_id(&self) -> Option<&Uint16>
pub fn take_key_id(&mut self) -> Option<Uint16>
pub fn key_type(&self) -> Option<&KeyType>
pub fn take_key_type(&mut self) -> Option<KeyType>
pub fn peer_addr(&self) -> Option<&[u8; 6]>
pub fn take_peer_addr(&mut self) -> Option<[u8; 6]>
pub fn rsc(&self) -> Option<&Uint64>
pub fn take_rsc(&mut self) -> Option<Uint64>
pub fn cipher_oui(&self) -> Option<&[u8; 3]>
pub fn take_cipher_oui(&mut self) -> Option<[u8; 3]>
pub fn cipher_type(&self) -> Option<&CipherSuiteType>
pub fn take_cipher_type(&mut self) -> Option<CipherSuiteType>
Trait Implementations§
Source§impl Constrained for SetKeyDescriptor<'_>
impl Constrained for SetKeyDescriptor<'_>
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, SetKeyDescriptor<'_>>,
_: <SetKeyDescriptor<'_> as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, SetKeyDescriptor<'_>>, _: <SetKeyDescriptor<'_> as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl<'de> Debug for SetKeyDescriptor<'de>
impl<'de> Debug for SetKeyDescriptor<'de>
Source§impl<'de, ___D> Decode<___D> for SetKeyDescriptor<'de>where
___D: Decoder<'de> + ?Sized,
impl<'de, ___D> Decode<___D> for SetKeyDescriptor<'de>where
___D: Decoder<'de> + ?Sized,
Source§impl<'de> Drop for SetKeyDescriptor<'de>
impl<'de> Drop for SetKeyDescriptor<'de>
Source§impl<'a, ___E> Encode<SetKeyDescriptor<'static>, ___E> for &'a SetKeyDescriptorwhere
___E: Encoder + ?Sized,
impl<'a, ___E> Encode<SetKeyDescriptor<'static>, ___E> for &'a SetKeyDescriptorwhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<SetKeyDescriptor<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<SetKeyDescriptor<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<SetKeyDescriptor<'static>, ___E> for SetKeyDescriptorwhere
___E: Encoder + ?Sized,
impl<___E> Encode<SetKeyDescriptor<'static>, ___E> for SetKeyDescriptorwhere
___E: Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<SetKeyDescriptor<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<SetKeyDescriptor<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<SetKeyDescriptor<'de>> for SetKeyDescriptor
impl<'de> FromWire<SetKeyDescriptor<'de>> for SetKeyDescriptor
Source§fn from_wire(wire_: SetKeyDescriptor<'de>) -> SetKeyDescriptor
fn from_wire(wire_: SetKeyDescriptor<'de>) -> SetKeyDescriptor
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<SetKeyDescriptor<'de>> for SetKeyDescriptor
impl<'de> FromWireRef<SetKeyDescriptor<'de>> for SetKeyDescriptor
Source§fn from_wire_ref(wire: &SetKeyDescriptor<'de>) -> SetKeyDescriptor
fn from_wire_ref(wire: &SetKeyDescriptor<'de>) -> SetKeyDescriptor
Converts the given reference to this type.
Source§impl<'de> IntoNatural for SetKeyDescriptor<'de>
impl<'de> IntoNatural for SetKeyDescriptor<'de>
Source§type Natural = SetKeyDescriptor
type Natural = SetKeyDescriptor
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for SetKeyDescriptor<'static>
impl Wire for SetKeyDescriptor<'static>
Source§type Narrowed<'de> = SetKeyDescriptor<'de>
type Narrowed<'de> = SetKeyDescriptor<'de>
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out: &mut MaybeUninit<SetKeyDescriptor<'static>>)
fn zero_padding(out: &mut MaybeUninit<SetKeyDescriptor<'static>>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl<'de> Freeze for SetKeyDescriptor<'de>
impl<'de> RefUnwindSafe for SetKeyDescriptor<'de>
impl<'de> Send for SetKeyDescriptor<'de>
impl<'de> Sync for SetKeyDescriptor<'de>
impl<'de> Unpin for SetKeyDescriptor<'de>
impl<'de> UnsafeUnpin for SetKeyDescriptor<'de>
impl<'de> !UnwindSafe for SetKeyDescriptor<'de>
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
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]