pub struct IfacContext { /* private fields */ }Implementations§
Source§impl IfacContext
impl IfacContext
pub fn derive( netname: Option<&str>, netkey: Option<&str>, size: IfacSize, ) -> Option<IfacContext>
pub fn ifac_size(&self) -> IfacSize
pub fn ifac_signature(&self) -> [u8; 64]
pub fn mask_outbound(&self, clean: &[u8], out: &mut [u8]) -> Option<usize>
pub fn unmask_inbound(&self, wire: &[u8], out: &mut [u8]) -> Option<usize>
pub fn unmask_inbound_in_place(&self, wire: &mut [u8]) -> Option<usize>
Trait Implementations§
Source§impl Clone for IfacContext
impl Clone for IfacContext
Source§fn clone(&self) -> IfacContext
fn clone(&self) -> IfacContext
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 moreAuto Trait Implementations§
impl Freeze for IfacContext
impl RefUnwindSafe for IfacContext
impl Send for IfacContext
impl Sync for IfacContext
impl Unpin for IfacContext
impl UnsafeUnpin for IfacContext
impl UnwindSafe for IfacContext
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