pub struct UpdateProposal { /* private fields */ }
Expand description
Update Proposal.
An Update proposal is a similar mechanism to Add with the distinction that it is the sender’s leaf KeyPackage in the tree which would be updated with a new KeyPackage.
Implementations
sourceimpl UpdateProposal
impl UpdateProposal
sourcepub fn key_package(&self) -> &KeyPackage
pub fn key_package(&self) -> &KeyPackage
Returns a reference to the key package in the proposal.
Trait Implementations
sourceimpl Clone for UpdateProposal
impl Clone for UpdateProposal
sourcefn clone(&self) -> UpdateProposal
fn clone(&self) -> UpdateProposal
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 UpdateProposal
impl Debug for UpdateProposal
sourceimpl Deserialize for UpdateProposal
impl Deserialize for UpdateProposal
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 UpdateProposal
impl<'de> Deserialize<'de> for UpdateProposal
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<UpdateProposal> for UpdateProposal
impl PartialEq<UpdateProposal> for UpdateProposal
sourcefn eq(&self, other: &UpdateProposal) -> bool
fn eq(&self, other: &UpdateProposal) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateProposal) -> bool
fn ne(&self, other: &UpdateProposal) -> bool
This method tests for !=
.
sourceimpl Serialize for UpdateProposal
impl Serialize for UpdateProposal
sourceimpl Serialize for UpdateProposal
impl Serialize for UpdateProposal
sourceimpl Serialize for &UpdateProposal
impl Serialize for &UpdateProposal
sourceimpl Size for UpdateProposal
impl Size for UpdateProposal
fn tls_serialized_len(&self) -> usize
sourceimpl Size for &UpdateProposal
impl Size for &UpdateProposal
fn tls_serialized_len(&self) -> usize
impl StructuralPartialEq for UpdateProposal
Auto Trait Implementations
impl RefUnwindSafe for UpdateProposal
impl Send for UpdateProposal
impl Sync for UpdateProposal
impl Unpin for UpdateProposal
impl UnwindSafe for UpdateProposal
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