pub struct IkeV2RawTransform<'a> {
pub last: u8,
pub reserved1: u8,
pub transform_length: u16,
pub transform_type: IkeTransformType,
pub reserved2: u8,
pub transform_id: u16,
pub attributes: Option<&'a [u8]>,
}
Expand description
Raw representation of a transform (cryptographic algorithm) and parameters
Use the From
method to convert it to a IkeV2Transform
Defined in RFC7296 section 3.3
Fields§
§last: u8
§reserved1: u8
§transform_length: u16
§transform_type: IkeTransformType
§reserved2: u8
§transform_id: u16
§attributes: Option<&'a [u8]>
Trait Implementations§
Source§impl<'a> Clone for IkeV2RawTransform<'a>
impl<'a> Clone for IkeV2RawTransform<'a>
Source§fn clone(&self) -> IkeV2RawTransform<'a>
fn clone(&self) -> IkeV2RawTransform<'a>
Returns a duplicate 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 moreSource§impl<'a> Debug for IkeV2RawTransform<'a>
impl<'a> Debug for IkeV2RawTransform<'a>
Source§impl<'a> From<&'a IkeV2RawTransform<'a>> for IkeV2Transform
impl<'a> From<&'a IkeV2RawTransform<'a>> for IkeV2Transform
Source§fn from(r: &IkeV2RawTransform<'_>) -> IkeV2Transform
fn from(r: &IkeV2RawTransform<'_>) -> IkeV2Transform
Converts to this type from the input type.
Source§impl<'a> From<IkeV2RawTransform<'a>> for IkeV2Transform
impl<'a> From<IkeV2RawTransform<'a>> for IkeV2Transform
Source§fn from(r: IkeV2RawTransform<'_>) -> IkeV2Transform
fn from(r: IkeV2RawTransform<'_>) -> IkeV2Transform
Converts to this type from the input type.
Source§impl<'a> PartialEq for IkeV2RawTransform<'a>
impl<'a> PartialEq for IkeV2RawTransform<'a>
impl<'a> StructuralPartialEq for IkeV2RawTransform<'a>
Auto Trait Implementations§
impl<'a> Freeze for IkeV2RawTransform<'a>
impl<'a> RefUnwindSafe for IkeV2RawTransform<'a>
impl<'a> Send for IkeV2RawTransform<'a>
impl<'a> Sync for IkeV2RawTransform<'a>
impl<'a> Unpin for IkeV2RawTransform<'a>
impl<'a> UnwindSafe for IkeV2RawTransform<'a>
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