pub struct ZewifEnvelope { /* private fields */ }Implementations§
Source§impl ZewifEnvelope
impl ZewifEnvelope
pub fn new(envelope: Envelope) -> Result<Self>
pub fn id(&self) -> ARID
pub fn digest(&self) -> Digest
pub fn envelope(&self) -> &Envelope
pub fn obscured_content(&self) -> Option<Envelope>
pub fn is_obscured(&self) -> bool
pub fn is_compressed(&self) -> bool
pub fn is_encrypted(&self) -> bool
pub fn can_compress(&self) -> bool
pub fn can_encrypt(&self) -> bool
pub fn can_uncompress(&self) -> bool
pub fn can_decrypt(&self) -> bool
pub fn compress(&mut self) -> Result<()>
pub fn uncompress(&mut self) -> Result<()>
pub fn derive_encryption_key(password: impl AsRef<str>) -> SymmetricKey
pub fn encrypt(&mut self, key: &SymmetricKey) -> Result<()>
pub fn decrypt(&mut self, key: &SymmetricKey) -> Result<()>
Trait Implementations§
Source§impl Clone for ZewifEnvelope
impl Clone for ZewifEnvelope
Source§fn clone(&self) -> ZewifEnvelope
fn clone(&self) -> ZewifEnvelope
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 moreAuto Trait Implementations§
impl Freeze for ZewifEnvelope
impl RefUnwindSafe for ZewifEnvelope
impl !Send for ZewifEnvelope
impl !Sync for ZewifEnvelope
impl Unpin for ZewifEnvelope
impl UnwindSafe for ZewifEnvelope
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more