Struct hpack_codec::field::HeaderField [] [src]

pub struct HeaderField<'a> { /* fields omitted */ }

Header Field.

This is a name-value pair. Both the name and value are treated as opaque sequences of octets.

Methods

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

[src]

Makes a new HeaderField instance.

Errors

If the size of resulting header is too large, the function will returns an Error.

The maximum size of a header (i.e., the sum of it's name and value) is std::u16::MAX - 32.

[src]

Returns the name of this header field.

[src]

Returns the value of this header field.

[src]

Returns the entry size of this header field.

See: 4.1. Calculating Table Size

Trait Implementations

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

[src]

Formats the value using the given formatter.

impl<'a> Clone for HeaderField<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq for HeaderField<'a>
[src]

[src]

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

[src]

This method tests for !=.

impl<'a> Eq for HeaderField<'a>
[src]

impl From<StaticEntry> for HeaderField<'static>
[src]

[src]

Performs the conversion.