pub struct Data { /* private fields */ }
Expand description

Data frame

Data frames convey arbitrary, variable-length sequences of octets associated with a stream. One or more DATA frames are used, for instance, to carry HTTP request or response payloads.

Implementations

Creates a new DATA frame.

Returns the stream identifier that this frame is associated with.

This cannot be a zero stream identifier.

Gets the value of the END_STREAM flag for this frame.

If true, this frame is the last that the endpoint will send for the identified stream.

Setting this flag causes the stream to enter one of the “half-closed” states or the “closed” state (Section 5.1).

Sets the value for the END_STREAM flag on this frame.

Returns whether the PADDED flag is set on this frame.

Sets the value for the PADDED flag on this frame.

Returns a reference to this frame’s payload.

This does not include any padding that might have been originally included.

Returns a mutable reference to this frame’s payload.

This does not include any padding that might have been originally included.

Consumes self and returns the frame’s payload.

This does not include any padding that might have been originally included.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.