Struct serde_encrypt::encrypt::plain_message_shared_key_deterministic::PlainMessageSharedKeyDeterministic
source · [−]pub struct PlainMessageSharedKeyDeterministic(_);
Expand description
Plain message structure serialized via serde.
Trait Implementations
sourceimpl Clone for PlainMessageSharedKeyDeterministic
impl Clone for PlainMessageSharedKeyDeterministic
sourcefn clone(&self) -> PlainMessageSharedKeyDeterministic
fn clone(&self) -> PlainMessageSharedKeyDeterministic
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
sourcefn eq(&self, other: &PlainMessageSharedKeyDeterministic) -> bool
fn eq(&self, other: &PlainMessageSharedKeyDeterministic) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PlainMessageSharedKeyDeterministic) -> bool
fn ne(&self, other: &PlainMessageSharedKeyDeterministic) -> bool
This method tests for !=
.
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<S>(&self, shared_key: &S) -> Result<EncryptedMessage, Error> where
S: AsSharedKey,
fn encrypt<S>(&self, shared_key: &S) -> Result<EncryptedMessage, Error> where
S: AsSharedKey,
Encrypt into EncryptedMessage
sourcefn decrypt<S>(
encrypted_message: &EncryptedMessage,
shared_key: &S
) -> Result<Self, Error> where
S: AsSharedKey,
fn decrypt<S>(
encrypted_message: &EncryptedMessage,
shared_key: &S
) -> Result<Self, Error> where
S: AsSharedKey,
Decrypt from EncryptedMessage
impl Eq for PlainMessageSharedKeyDeterministic
impl StructuralEq for PlainMessageSharedKeyDeterministic
impl StructuralPartialEq for PlainMessageSharedKeyDeterministic
Auto Trait Implementations
impl RefUnwindSafe for PlainMessageSharedKeyDeterministic
impl Send for PlainMessageSharedKeyDeterministic
impl Sync for PlainMessageSharedKeyDeterministic
impl Unpin for PlainMessageSharedKeyDeterministic
impl UnwindSafe for PlainMessageSharedKeyDeterministic
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