pub enum IntegrityConfig {
Crc16(Crc16),
Crc32(Crc32),
Crc64(Crc64),
SipTag(SipTag),
}Expand description
Packet integrity backend selected by engine configuration.
Variants§
Crc16(Crc16)
CRC-16/XMODEM packet integrity.
Crc32(Crc32)
CRC-32/ISO-HDLC packet integrity.
Crc64(Crc64)
CRC-64/ECMA-182 packet integrity.
SipTag(SipTag)
Keyed 128-bit packet integrity tag.
Implementations§
Source§impl IntegrityConfig
impl IntegrityConfig
Sourcepub const DEFAULT: IntegrityConfig
pub const DEFAULT: IntegrityConfig
Default packet integrity backend used by crate::engine::EngineConfig.
Sourcepub const fn crc16() -> IntegrityConfig
pub const fn crc16() -> IntegrityConfig
Creates the default CRC-16/XMODEM integrity configuration.
Sourcepub const fn crc32() -> IntegrityConfig
pub const fn crc32() -> IntegrityConfig
Creates a CRC-32/ISO-HDLC integrity configuration.
Sourcepub const fn crc64() -> IntegrityConfig
pub const fn crc64() -> IntegrityConfig
Creates a CRC-64/ECMA-182 integrity configuration.
Sourcepub const fn sip_tag() -> IntegrityConfig
pub const fn sip_tag() -> IntegrityConfig
Creates a keyed integrity tag configuration with the library default key.
Sourcepub const fn sip_tag_with_key(key: [u8; 16]) -> IntegrityConfig
pub const fn sip_tag_with_key(key: [u8; 16]) -> IntegrityConfig
Creates a keyed integrity tag configuration with a custom key.
Trait Implementations§
Source§impl Clone for IntegrityConfig
impl Clone for IntegrityConfig
Source§fn clone(&self) -> IntegrityConfig
fn clone(&self) -> IntegrityConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IntegrityConfig
Source§impl Debug for IntegrityConfig
impl Debug for IntegrityConfig
Source§impl Default for IntegrityConfig
impl Default for IntegrityConfig
Source§fn default() -> IntegrityConfig
fn default() -> IntegrityConfig
Returns the “default value” for a type. Read more
impl Eq for IntegrityConfig
Source§impl PartialEq for IntegrityConfig
impl PartialEq for IntegrityConfig
Source§fn eq(&self, other: &IntegrityConfig) -> bool
fn eq(&self, other: &IntegrityConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IntegrityConfig
Auto Trait Implementations§
impl Freeze for IntegrityConfig
impl RefUnwindSafe for IntegrityConfig
impl Send for IntegrityConfig
impl Sync for IntegrityConfig
impl Unpin for IntegrityConfig
impl UnsafeUnpin for IntegrityConfig
impl UnwindSafe for IntegrityConfig
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