pub struct EncryptionPolicy {
pub enabled: bool,
pub required: bool,
pub psk: Option<String>,
}Expand description
Process-wide encryption policy.
Fields§
§enabled: boolWhen true, offer and accept enc/1 during feed negotiation.
required: boolWhen true, refuse any feed connection that does not negotiate enc/1.
psk: Option<String>Optional pre-shared key mixed into HKDF-SHA256 for mutual authentication.
Implementations§
Source§impl EncryptionPolicy
impl EncryptionPolicy
Sourcepub fn opportunistic(psk: Option<String>) -> Self
pub fn opportunistic(psk: Option<String>) -> Self
Opportunistic negotiated encryption: encrypt with labstream peers that
also enable enc, fall back to plain LSL with liblsl peers.
Trait Implementations§
Source§impl Clone for EncryptionPolicy
impl Clone for EncryptionPolicy
Source§impl Debug for EncryptionPolicy
impl Debug for EncryptionPolicy
Source§impl Default for EncryptionPolicy
impl Default for EncryptionPolicy
impl Eq for EncryptionPolicy
Source§impl PartialEq for EncryptionPolicy
impl PartialEq for EncryptionPolicy
impl StructuralPartialEq for EncryptionPolicy
Auto Trait Implementations§
impl Forget for EncryptionPolicy
impl Freeze for EncryptionPolicy
impl Move for EncryptionPolicy
impl RefUnwindSafe for EncryptionPolicy
impl Send for EncryptionPolicy
impl Sync for EncryptionPolicy
impl Unpin for EncryptionPolicy
impl UnsafeUnpin for EncryptionPolicy
impl UnwindSafe for EncryptionPolicy
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