pub struct RecipientPublic(/* private fields */);Expand description
An HPKE-validated X-Wing recipient public key.
Implementations§
Source§impl RecipientPublic
impl RecipientPublic
pub fn from_bytes(bytes: &[u8]) -> Result<Self, CryptoError>
pub fn to_bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for RecipientPublic
impl Clone for RecipientPublic
Source§fn clone(&self) -> RecipientPublic
fn clone(&self) -> RecipientPublic
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 RecipientPublic
impl RefUnwindSafe for RecipientPublic
impl Send for RecipientPublic
impl Sync for RecipientPublic
impl Unpin for RecipientPublic
impl UnsafeUnpin for RecipientPublic
impl UnwindSafe for RecipientPublic
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