Enum ppp::v1::ParseError [−][src]
pub enum ParseError {
Show 16 variants
InvalidPrefix,
Partial,
MissingPrefix,
MissingNewLine,
MissingProtocol,
MissingSourceAddress,
MissingDestinationAddress,
MissingSourcePort,
MissingDestinationPort,
HeaderTooLong,
InvalidProtocol,
InvalidSuffix,
InvalidSourceAddress(AddrParseError),
InvalidDestinationAddress(AddrParseError),
InvalidSourcePort(Option<ParseIntError>),
InvalidDestinationPort(Option<ParseIntError>),
}
Expand description
An error in parsing a text PROXY protocol header.
Variants
InvalidPrefix
Partial
MissingPrefix
MissingNewLine
MissingProtocol
MissingSourceAddress
MissingDestinationAddress
MissingSourcePort
MissingDestinationPort
HeaderTooLong
InvalidProtocol
InvalidSuffix
InvalidSourceAddress(AddrParseError)
Tuple Fields
InvalidDestinationAddress(AddrParseError)
Tuple Fields
InvalidSourcePort(Option<ParseIntError>)
Tuple Fields
0: Option<ParseIntError>
InvalidDestinationPort(Option<ParseIntError>)
Tuple Fields
0: Option<ParseIntError>
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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. Read more
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. Read more