pub enum CarrierKeyType {
Direct {
key: [u8; 32],
},
Exchange {
public_key: PublicKey,
},
None,
}Variants§
Direct
Use AES256 key
Exchange
Use key exchange to generate a shared key
None
Use own private key
Note If public key encryption is used, this will use your own private/public key for key exchange otherwise if its AES256, it will encrypt with that key itself
Trait Implementations§
Source§impl Clone for CarrierKeyType
impl Clone for CarrierKeyType
Source§fn clone(&self) -> CarrierKeyType
fn clone(&self) -> CarrierKeyType
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 moreimpl Copy for CarrierKeyType
Source§impl Default for CarrierKeyType
impl Default for CarrierKeyType
Source§fn default() -> CarrierKeyType
fn default() -> CarrierKeyType
Returns the “default value” for a type. Read more
Source§impl PartialEq for CarrierKeyType
impl PartialEq for CarrierKeyType
Source§fn eq(&self, other: &CarrierKeyType) -> bool
fn eq(&self, other: &CarrierKeyType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CarrierKeyType
Auto Trait Implementations§
impl Freeze for CarrierKeyType
impl RefUnwindSafe for CarrierKeyType
impl Send for CarrierKeyType
impl Sync for CarrierKeyType
impl Unpin for CarrierKeyType
impl UnsafeUnpin for CarrierKeyType
impl UnwindSafe for CarrierKeyType
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