Enum orion::hazardous::aead::streaming::StreamTag[][src]

pub enum StreamTag {
    Message,
    Push,
    Rekey,
    Finish,
}

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

impl StreamTag[src]

pub fn as_byte(&self) -> u8[src]

Return the tag as a byte.

Trait Implementations

impl Debug for StreamTag[src]

impl PartialEq<StreamTag> for StreamTag[src]

impl TryFrom<u8> for StreamTag[src]

type Error = UnknownCryptoError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.