Enum postgres_protocol::message::backend::ParseResult [] [src]

pub enum ParseResult<T> {
    Complete {
        message: Message<T>,
        consumed: usize,
    },
    Incomplete {
        required_size: Option<usize>,
    },
}

The result of an attempted parse.

Variants

The message was successfully parsed.

Fields of Complete

The message.

The number of bytes of the input buffer consumed to parse this message.

The buffer did not contain a full message.

Fields of Incomplete

The number of total bytes required to parse a message, if known.

This value is present if the input buffer contains at least 5 bytes.