pub struct HpkeKeyPair(/* private fields */);
Implementations§
Source§impl HpkeKeyPair
impl HpkeKeyPair
pub fn extract_public_key(&mut self) -> SensitiveBytes
pub fn extract_secret_key(&mut self) -> SensitiveBytes
Trait Implementations§
Source§impl Clone for HpkeKeyPair
impl Clone for HpkeKeyPair
Source§fn clone(&self) -> HpkeKeyPair
fn clone(&self) -> HpkeKeyPair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HpkeKeyPair
impl Debug for HpkeKeyPair
Source§impl Deref for HpkeKeyPair
impl Deref for HpkeKeyPair
Source§impl<'de> Deserialize<'de> for HpkeKeyPair
impl<'de> Deserialize<'de> for HpkeKeyPair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<HpkeKeyPair> for KeyPackageKeyPair
impl From<HpkeKeyPair> for KeyPackageKeyPair
Source§fn from(value: HpkeKeyPair) -> Self
fn from(value: HpkeKeyPair) -> Self
Converts to this type from the input type.
Source§impl From<KeyPair> for HpkeKeyPair
impl From<KeyPair> for HpkeKeyPair
Source§impl PartialEq for HpkeKeyPair
impl PartialEq for HpkeKeyPair
Source§impl Serialize for HpkeKeyPair
impl Serialize for HpkeKeyPair
impl Eq for HpkeKeyPair
impl StructuralPartialEq for HpkeKeyPair
Auto Trait Implementations§
impl Freeze for HpkeKeyPair
impl RefUnwindSafe for HpkeKeyPair
impl Send for HpkeKeyPair
impl Sync for HpkeKeyPair
impl Unpin for HpkeKeyPair
impl UnwindSafe for HpkeKeyPair
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