pub struct BinaryLinoOptions {
pub external_references: bool,
pub arity: ArityRange,
pub packed_widths: bool,
}Expand description
Optional features of the binary LiNo protocol.
Every feature is off by default; each one can be switched on independently, like stacking a decorator.
Fields§
§external_references: boolSend numbers and code points as Hybrid external references instead of in-band unary links. Halves the internal address range of each width.
arity: ArityRangeThe link lengths the encoder may use. The default, exactly 2, sends
only doublets; 2..3 adds triplets and 1.. any length. The range
must include 2.
packed_widths: boolGive every section of the packet the narrowest width its links need instead of one width for the whole packet.
Implementations§
Source§impl BinaryLinoOptions
impl BinaryLinoOptions
Sourcepub fn with_external_references(self, enabled: bool) -> Self
pub fn with_external_references(self, enabled: bool) -> Self
Enables or disables external references.
Sourcepub fn with_arity(self, arity: ArityRange) -> Self
pub fn with_arity(self, arity: ArityRange) -> Self
Sets the link lengths the encoder may use.
Sourcepub fn with_packed_widths(self, enabled: bool) -> Self
pub fn with_packed_widths(self, enabled: bool) -> Self
Enables or disables packed widths.
Sourcepub fn of_packet(packet: &LinksPacket) -> Self
pub fn of_packet(packet: &LinksPacket) -> Self
The options a peer most likely used to write packet, so a reply can
be written in the same style.
Trait Implementations§
Source§impl Clone for BinaryLinoOptions
impl Clone for BinaryLinoOptions
Source§fn clone(&self) -> BinaryLinoOptions
fn clone(&self) -> BinaryLinoOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more