Trait rama::proxy::haproxy::protocol::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

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

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.

Implementations on Foreign Types§

§

impl<T, E> PartialResult for Result<T, E>
where E: PartialResult,

§

fn is_incomplete(&self) -> bool

Implementors§

§

impl PartialResult for BinaryParseError

§

impl PartialResult for rama::proxy::haproxy::protocol::v1::ParseError

§

impl PartialResult for rama::proxy::haproxy::protocol::v2::ParseError

§

impl<'a> PartialResult for HeaderResult<'a>