pub enum MessageDesc {
Plaintext,
Signed,
EncryptedSym,
EncryptedAsm,
SignedEncryptedSym,
SignedEncryptedAsm,
}Expand description
Describes the message structure.
In case the message is signed it should always be signed first and then encrypted, i.e. the signature should be done over the plaintext.
Variants§
Plaintext
Plaintext message. Only possible after using a message parser.
Signed
Signed message.
EncryptedSym
Symmetrically encrypted message.
EncryptedAsm
Asymmetrically encrypted message.
SignedEncryptedSym
Signed and symmetrically encrypted message.
SignedEncryptedAsm
Signed and asymmetrically encrypted message.
Trait Implementations§
Source§impl Debug for MessageDesc
impl Debug for MessageDesc
Auto Trait Implementations§
impl Freeze for MessageDesc
impl RefUnwindSafe for MessageDesc
impl Send for MessageDesc
impl Sync for MessageDesc
impl Unpin for MessageDesc
impl UnwindSafe for MessageDesc
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