Trait PartialResult
pub trait PartialResult {
// Required method
fn is_incomplete(&self) -> bool;
// Provided method
fn is_complete(&self) -> bool { ... }
}
Expand description
The canonical way to determine when a streamed header should be retried in a streaming context. The protocol states that servers may choose to support partial headers or to close the connection if the header is not present all at once.
Required Methods§
fn is_incomplete(&self) -> bool
fn is_incomplete(&self) -> bool
Tests whether this Result
is incomplete.
An action that leads to an incomplete result may have a different result with more bytes.
Retrying with the same input will not change the result.
Provided Methods§
fn is_complete(&self) -> bool
fn is_complete(&self) -> bool
Tests whether this Result
is successful or whether the error is terminal.
A terminal error will not result in a success even with more bytes.
Retrying with the same – or more – input will not change the result.