pub struct Response {
    pub bytes: Bytes,
    pub chunks: Chunks,
    pub will_wake: bool,
    pub status: Status,
}
Expand description

The result of a pop operation

Fields

bytes: Bytes

Information about the bytes that were received

chunks: Chunks

Information about the chunks that were received

will_wake: bool

Indicates if the operation resulted in storing the provided waker to notify when the request may be polled again.

status: Status

The current status of the stream

Implementations

Returns true if provided waker will be woken

Returns the rx response

Returns true if the status is Open

Returns true if the status is Finishing

Returns true if the status is Finished

Returns true if the status is Resetting

Returns true if the status is Reset

Returns true if the status is Finishing or Resetting

Returns true if the status is Finished or Reset

Converts the response into a Poll<Self>

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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 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.