Struct lock_keeper::crypto::generic::AssociatedData
source · pub(super) struct AssociatedData(Vec<u8>);
Expand description
The associated data used in Encrypted
AEAD ciphertexts and
key derivations.
Tuple Fields§
§0: Vec<u8>
Implementations§
source§impl AssociatedData
impl AssociatedData
pub(super) fn new() -> Self
pub(super) fn with_str(self, ad: &str) -> Self
pub(super) fn with_bytes(self, ad: impl IntoIterator<Item = u8>) -> Self
Trait Implementations§
source§impl Clone for AssociatedData
impl Clone for AssociatedData
source§fn clone(&self) -> AssociatedData
fn clone(&self) -> AssociatedData
Returns a copy 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 AssociatedData
impl Debug for AssociatedData
source§impl Default for AssociatedData
impl Default for AssociatedData
source§impl<'de> Deserialize<'de> for AssociatedData
impl<'de> Deserialize<'de> for AssociatedData
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<'a> From<&'a AssociatedData> for &'a [u8]
impl<'a> From<&'a AssociatedData> for &'a [u8]
source§fn from(associated_data: &'a AssociatedData) -> Self
fn from(associated_data: &'a AssociatedData) -> Self
Converts to this type from the input type.
source§impl From<AssociatedData> for Vec<u8>
impl From<AssociatedData> for Vec<u8>
source§fn from(associated_data: AssociatedData) -> Self
fn from(associated_data: AssociatedData) -> Self
Converts to this type from the input type.
source§impl Hash for AssociatedData
impl Hash for AssociatedData
source§impl PartialEq for AssociatedData
impl PartialEq for AssociatedData
source§fn eq(&self, other: &AssociatedData) -> bool
fn eq(&self, other: &AssociatedData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedData
impl Serialize for AssociatedData
impl Eq for AssociatedData
impl StructuralPartialEq for AssociatedData
Auto Trait Implementations§
impl Freeze for AssociatedData
impl RefUnwindSafe for AssociatedData
impl Send for AssociatedData
impl Sync for AssociatedData
impl Unpin for AssociatedData
impl UnwindSafe for AssociatedData
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
source§impl<T> ConvertMessage for Twhere
T: for<'a> Deserialize<'a> + Serialize,
impl<T> ConvertMessage for Twhere
T: for<'a> Deserialize<'a> + Serialize,
fn from_message(value: Message) -> Result<Self, LockKeeperError>
fn to_message(self) -> Result<Message, LockKeeperError>
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request