pub struct Response { /* private fields */ }
Available on crate features blocking-client or async-client only.
Expand description

A representation of a complete fetch response

Implementations§

Available on crate feature blocking-client only.

Parse a response of the given version of the protocol from reader.

Return true if the response has a pack which can be read next.

Return an error if the given features don’t contain the required ones (the ones this implementation needs) for the given version of the protocol.

Even though technically any set of features supported by the server could work, we only implement the ones that make it easy to maintain all versions with a single code base that aims to be and remain maintainable.

Return all acknowledgements parsed previously.

Return all shallow update lines parsed previously.

Return all wanted-refs parsed previously.

Trait Implementations§

Formats the value using the given formatter. Read more

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.