Enum http_box::util::FieldSegment [] [src]

pub enum FieldSegment<'a> {
    Name(&'a [u8]),
    NameValue(&'a [u8]&'a [u8]),
}

Field segments.

Variants

Name without a value.

Name and value pair.

Methods

impl<'a> FieldSegment<'a>
[src]

Indicates that this [FieldSegment] contains a value.

Retrieve the name.

Retrieve the value.

Trait Implementations

impl<'a> Debug for FieldSegment<'a>
[src]

Formats the value using the given formatter.

impl<'a> Display for FieldSegment<'a>
[src]

Formats the value using the given formatter.