pub struct VerifiedCapsuleFrag { /* private fields */ }Expand description
Verified capsule fragment, good for dencryption.
Can be serialized, but cannot be deserialized directly.
It can only be obtained from CapsuleFrag::verify or CapsuleFrag::skip_verification.
Implementations§
Source§impl VerifiedCapsuleFrag
impl VerifiedCapsuleFrag
Sourcepub fn unverify(self) -> CapsuleFrag
pub fn unverify(self) -> CapsuleFrag
Clears the verification status from the capsule frag.
Useful for the cases where it needs to be put in the protocol structure
containing CapsuleFrag types (since those are the ones
that can be serialized/deserialized freely).
Sourcepub fn to_bytes_simple(&self) -> Box<[u8]>
pub fn to_bytes_simple(&self) -> Box<[u8]>
Returns the same thing as CapsuleFrag::to_bytes_simple.
Trait Implementations§
Source§impl Clone for VerifiedCapsuleFrag
impl Clone for VerifiedCapsuleFrag
Source§fn clone(&self) -> VerifiedCapsuleFrag
fn clone(&self) -> VerifiedCapsuleFrag
Returns a duplicate 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 VerifiedCapsuleFrag
impl Debug for VerifiedCapsuleFrag
Source§impl DefaultSerialize for VerifiedCapsuleFrag
Available on crate feature default-serialization only.
impl DefaultSerialize for VerifiedCapsuleFrag
Available on crate feature
default-serialization only.Source§impl Display for VerifiedCapsuleFrag
impl Display for VerifiedCapsuleFrag
Source§impl PartialEq for VerifiedCapsuleFrag
impl PartialEq for VerifiedCapsuleFrag
Source§impl Serialize for VerifiedCapsuleFrag
impl Serialize for VerifiedCapsuleFrag
impl StructuralPartialEq for VerifiedCapsuleFrag
Auto Trait Implementations§
impl Freeze for VerifiedCapsuleFrag
impl RefUnwindSafe for VerifiedCapsuleFrag
impl Send for VerifiedCapsuleFrag
impl Sync for VerifiedCapsuleFrag
impl Unpin for VerifiedCapsuleFrag
impl UnwindSafe for VerifiedCapsuleFrag
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