pub struct PushKeydir<Prev: Rec> { /* private fields */ }Available on crate feature
ovpn only.Implementations§
Source§impl<Prev: Rec> PushKeydir<Prev>
impl<Prev: Rec> PushKeydir<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
Sourcepub fn push_cipher_key(self, value: &[u8]) -> Self
pub fn push_cipher_key(self, value: &[u8]) -> Self
The actual key to be used by the cipher
Sourcepub fn push_nonce_tail(self, value: &[u8]) -> Self
pub fn push_nonce_tail(self, value: &[u8]) -> Self
Random nonce to be concatenated to the packet ID, in order to obtain the actual cipher IV
Trait Implementations§
Source§impl<Prev: Rec> Drop for PushKeydir<Prev>
impl<Prev: Rec> Drop for PushKeydir<Prev>
Auto Trait Implementations§
impl<Prev> Freeze for PushKeydir<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushKeydir<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushKeydir<Prev>where
Prev: Send,
impl<Prev> Sync for PushKeydir<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushKeydir<Prev>where
Prev: Unpin,
impl<Prev> UnsafeUnpin for PushKeydir<Prev>where
Prev: UnsafeUnpin,
impl<Prev> UnwindSafe for PushKeydir<Prev>where
Prev: UnwindSafe,
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