pub struct SecurePad<'a> {
pub pad: &'a Expr<'a>,
pub role: SecureRole,
}Expand description
The with pad "<path>" as <role> binding on a Connect/Listen — activate the PNP one-time-pad
session over the pad file at pad, with this peer taking role.
Fields§
§pad: &'a Expr<'a>The pad file path (a string-literal or variable expression).
role: SecureRoleWhich directional half this peer sends on.
Trait Implementations§
impl<'a> Copy for SecurePad<'a>
Auto Trait Implementations§
impl<'a> Freeze for SecurePad<'a>
impl<'a> RefUnwindSafe for SecurePad<'a>
impl<'a> Send for SecurePad<'a>
impl<'a> Sync for SecurePad<'a>
impl<'a> Unpin for SecurePad<'a>
impl<'a> UnsafeUnpin for SecurePad<'a>
impl<'a> UnwindSafe for SecurePad<'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