Struct openmls_traits::types::HpkeCiphertext
source · [−]pub struct HpkeCiphertext {
pub kem_output: TlsByteVecU16,
pub ciphertext: TlsByteVecU16,
}
Expand description
7.7. Update Paths
struct {
opaque kem_output<0..2^16-1>;
opaque ciphertext<0..2^16-1>;
} HPKECiphertext;
Fields
kem_output: TlsByteVecU16
ciphertext: TlsByteVecU16
Trait Implementations
sourceimpl Clone for HpkeCiphertext
impl Clone for HpkeCiphertext
sourcefn clone(&self) -> HpkeCiphertext
fn clone(&self) -> HpkeCiphertext
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 HpkeCiphertext
impl Debug for HpkeCiphertext
sourceimpl Deserialize for HpkeCiphertext
impl Deserialize for HpkeCiphertext
sourcefn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This function deserializes the bytes
from the provided a std::io::Read
and returns the populated struct. Read more
sourceimpl<'de> Deserialize<'de> for HpkeCiphertext
impl<'de> Deserialize<'de> for HpkeCiphertext
sourcefn 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
sourceimpl PartialEq<HpkeCiphertext> for HpkeCiphertext
impl PartialEq<HpkeCiphertext> for HpkeCiphertext
sourcefn eq(&self, other: &HpkeCiphertext) -> bool
fn eq(&self, other: &HpkeCiphertext) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HpkeCiphertext) -> bool
fn ne(&self, other: &HpkeCiphertext) -> bool
This method tests for !=
.
sourceimpl Serialize for HpkeCiphertext
impl Serialize for HpkeCiphertext
sourceimpl Serialize for HpkeCiphertext
impl Serialize for HpkeCiphertext
sourceimpl Serialize for &HpkeCiphertext
impl Serialize for &HpkeCiphertext
sourceimpl Size for HpkeCiphertext
impl Size for HpkeCiphertext
fn tls_serialized_len(&self) -> usize
sourceimpl Size for &HpkeCiphertext
impl Size for &HpkeCiphertext
fn tls_serialized_len(&self) -> usize
impl StructuralPartialEq for HpkeCiphertext
Auto Trait Implementations
impl RefUnwindSafe for HpkeCiphertext
impl Send for HpkeCiphertext
impl Sync for HpkeCiphertext
impl Unpin for HpkeCiphertext
impl UnwindSafe for HpkeCiphertext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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