Enum crypto_secretstream::Tag
source · pub enum Tag {
Message,
Push,
Rekey,
Final,
}
Expand description
Tag is attached to each message, which can change the state of the stream.
Variants§
Message
Most common tag, doesn’t add any information about the nature of the message.
Push
Marks the end of a set of messages, but not the end of the stream.
Rekey
Generate a new key for the stream.
Final
Marks the end of the stream.
Trait Implementations§
impl Copy for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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