pub struct PlainMessagePublicKey(_);
Expand description
Plain message structure serialized via serde.
Trait Implementations
sourceimpl Clone for PlainMessagePublicKey
impl Clone for PlainMessagePublicKey
sourcefn clone(&self) -> PlainMessagePublicKey
fn clone(&self) -> PlainMessagePublicKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PlainMessagePublicKey
impl Debug for PlainMessagePublicKey
sourceimpl PartialEq<PlainMessagePublicKey> for PlainMessagePublicKey
impl PartialEq<PlainMessagePublicKey> for PlainMessagePublicKey
sourcefn eq(&self, other: &PlainMessagePublicKey) -> bool
fn eq(&self, other: &PlainMessagePublicKey) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PlainMessagePublicKey) -> bool
fn ne(&self, other: &PlainMessagePublicKey) -> bool
This method tests for !=
.
sourceimpl PlainMessagePublicKeyCore for PlainMessagePublicKey
impl PlainMessagePublicKeyCore for PlainMessagePublicKey
type R = RngSingletonImpl
type R = RngSingletonImpl
RNG singleton
sourcefn as_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
fn as_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Ref to raw representation
sourcefn encrypt(
&self,
combined_key: &SenderCombinedKey<'_, '_>
) -> Result<EncryptedMessage, Error>
fn encrypt(
&self,
combined_key: &SenderCombinedKey<'_, '_>
) -> Result<EncryptedMessage, Error>
Encrypt into EncryptedMessage
sourcefn decrypt(
encrypted_message: &EncryptedMessage,
combined_key: &ReceiverCombinedKey<'_, '_>
) -> Result<Self, Error>
fn decrypt(
encrypted_message: &EncryptedMessage,
combined_key: &ReceiverCombinedKey<'_, '_>
) -> Result<Self, Error>
Decrypt from EncryptedMessage
impl Eq for PlainMessagePublicKey
impl StructuralEq for PlainMessagePublicKey
impl StructuralPartialEq for PlainMessagePublicKey
Auto Trait Implementations
impl RefUnwindSafe for PlainMessagePublicKey
impl Send for PlainMessagePublicKey
impl Sync for PlainMessagePublicKey
impl Unpin for PlainMessagePublicKey
impl UnwindSafe for PlainMessagePublicKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more