pub enum Keyconf<'a> {
PeerId(u32),
Slot(u32),
KeyId(u32),
CipherAlg(u32),
EncryptDir(IterableKeydir<'a>),
DecryptDir(IterableKeydir<'a>),
}Available on crate feature
ovpn only.Variants§
PeerId(u32)
The unique ID of the peer in the device context. To be used to identify peers during key operations
Slot(u32)
The slot where the key should be stored
Associated type: KeySlot (enum)
KeyId(u32)
The unique ID of the key in the peer context. Used to fetch the correct key upon decryption
CipherAlg(u32)
The cipher to be used when communicating with the peer
Associated type: CipherAlg (enum)
EncryptDir(IterableKeydir<'a>)
Key material for encrypt direction
DecryptDir(IterableKeydir<'a>)
Key material for decrypt direction
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Keyconf<'a>
impl<'a> RefUnwindSafe for Keyconf<'a>
impl<'a> Send for Keyconf<'a>
impl<'a> Sync for Keyconf<'a>
impl<'a> Unpin for Keyconf<'a>
impl<'a> UnsafeUnpin for Keyconf<'a>
impl<'a> UnwindSafe for Keyconf<'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