[−][src]Enum rust_eterm::terms::DistHeaderTag

pub enum DistHeaderTag {
    Normal,
    Fragmented,
    Fragment,
    Compressed,
}

Variants

Normal

The tag for a normal unfragmented and uncompressed distribution header.

Binary representation

1 byte1 byteNumberOfAtomCacheRefs/2+1 \| 0 bytesN \| 0 bytes
68NumberOfAtomCacheRefsFlagsAtomCacheRefs

This header is then trailed with a term_to_binary-encoded term with (optionally) atom references to this header.

Fragmented

The tag for a header stating that the message is fragmented.

Note: This header must contain the entire atom cache.

Binary representation

1 byte8 bytes8 bytes1 byteNumberOfAtomCacheRefs/2+1 \| 0 bytesN \| 0 bytes
69SequenceIdFragmentIdNumberOfAtomCacheRefsFlagsAtomCacheRefs

Some data MAY then be sent after this header, and each packet after this MUST only contain data of the term that is being sent.

Fragment

The tag denoting a follow-up fragment of apreviously fragment message (either another fragment, or the first fragment).

Binary representation

1 byte8 bytes8 bytes
70SequenceIdFragmentId
Compressed

The tag denoting a compressed value (either a distribution header or an encoded atom).

Binary representation

1 byte4 bytesN
80UncompressedSizeZLibCompressedData

Auto Trait Implementations

impl RefUnwindSafe for DistHeaderTag

impl Send for DistHeaderTag

impl Sync for DistHeaderTag

impl Unpin for DistHeaderTag

impl UnwindSafe for DistHeaderTag

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.