Enum domain::bits::compose::ComposeMode[][src]

pub enum ComposeMode {
    Unlimited,
    Limited(usize),
    Stream,
}

An enum determining the construction mode of a composition.

Variants

The composition can grow to any size.

The composition can never exceed a size of the given value.

When creating a ComposeBuf from an existing vector, the maximum only pertains to the composition itself. That is, the resulting vector will be larger by whatever has been in there already.

The composition is for a stream transport.

In this mode, the composition will be preceeded by a two-byte value which, upon finishing, will be set to the big-endian sixteen bit integer value of the length of the composition. This implies a maximum composition size of 65535 bytes.

Trait Implementations

impl Clone for ComposeMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ComposeMode
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ComposeMode

impl Sync for ComposeMode