pub enum StreamTag {
Message,
Push,
Rekey,
Finish,
}
Expand description
Tag that indicates the type of message.
Variants§
Message
A message with no special meaning.
Push
Marks that the message is the end of a set of messages. Allows the decrypting site to start working with this data.
Rekey
Derives a new secret key and forgets the one used for earlier encryption/decryption operations.
Finish
Indicates the end of a stream. Also does a rekey.
Implementations§
Trait Implementations§
source§impl PartialEq<StreamTag> for StreamTag
impl PartialEq<StreamTag> for StreamTag
impl Copy for StreamTag
Auto Trait Implementations§
impl RefUnwindSafe for StreamTag
impl Send for StreamTag
impl Sync for StreamTag
impl Unpin for StreamTag
impl UnwindSafe for StreamTag
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