Enum rexsgdata::Element[][src]

pub enum Element {
    Zle(usize),
    Iovec(iovec),
}

Intermediate element that can represent either regular iovec or a sequence of zeroes

Variants

A block of zeroes of a specified size (aka Zero Length Encoding)

Regular iovec

Methods

impl Element
[src]

Constructs Element::Zle variant of a specified size

Trait Implementations

impl Clone for Element
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<iovec> for Element
[src]

Performs the conversion.

impl From<(*mut c_void, size_t)> for Element
[src]

Performs the conversion.

impl<'a> From<&'a [u8]> for Element
[src]

Performs the conversion.

impl<'a> From<&'a mut [u8]> for Element
[src]

Performs the conversion.

impl Debug for Element
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Element
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Send for Element
[src]

impl Sync for Element
[src]

impl Serialize for Element
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for Element
[src]

Deserialize this value from the given Serde deserializer. Read more

impl From<Element> for SgData
[src]

Performs the conversion.

impl FromIterator<Element> for SgData
[src]

Creates a value from an iterator. Read more

impl Extend<Element> for SgData
[src]

Extends a collection with the contents of an iterator. Read more

impl<'a> Extend<&'a Element> for SgData
[src]

Extends a collection with the contents of an iterator. Read more