Enum domain::bits::compose::ComposeMode
[−]
[src]
pub enum ComposeMode { Unlimited, Limited(usize), Stream, }
An enum determining the construction mode of a composition.
Variants
Unlimited
The composition can grow to any size.
Limited(usize)
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.
Stream
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]
fn clone(&self) -> ComposeMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more