Module fcp_switching::encoding_scheme [] [src]

Contains structures used for announcing and decoding the Encoding Scheme, as defined in https://github.com/cjdelisle/cjdns/blob/cjdns-v18/doc/Whitepaper.md#encoding-schemes

EncodingScheme can be constructed either from bytes (ie. from the network) or from an interator on EncodingSchemeForm. Its content can be accessed either by writing it to bytes (ie. to the network) or by turning it into_iterator of EncodingSchemeForm.

Structs

EncodingScheme

A list of EncodingSchemeForm. Can be serialized to/deserialized from bytes, and constructed from/read to an iterator of EncodingSchemeForm.

EncodingSchemeForm

An item of the Encoding Scheme. See https://github.com/cjdelisle/cjdns/blob/cjdns-v18/doc/Whitepaper.md#definitions for its definition.

EncodingSchemeIterator

Iterator of EncodingSchemeForm, constructed from an instance of EncodingScheme