Enum ppp::v1::BinaryParseError
source · [−]pub enum BinaryParseError {
Parse(ParseError),
InvalidUtf8(Utf8Error),
}
Expand description
An error in parsing a text PROXY protocol header that is represented as a byte slice.
Variants
Parse(ParseError)
InvalidUtf8(Utf8Error)
Trait Implementations
sourceimpl Debug for BinaryParseError
impl Debug for BinaryParseError
sourceimpl Display for BinaryParseError
impl Display for BinaryParseError
sourceimpl Error for BinaryParseError
impl Error for BinaryParseError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ParseError> for BinaryParseError
impl From<ParseError> for BinaryParseError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<Utf8Error> for BinaryParseError
impl From<Utf8Error> for BinaryParseError
sourceimpl PartialEq<BinaryParseError> for BinaryParseError
impl PartialEq<BinaryParseError> for BinaryParseError
sourcefn eq(&self, other: &BinaryParseError) -> bool
fn eq(&self, other: &BinaryParseError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BinaryParseError) -> bool
fn ne(&self, other: &BinaryParseError) -> bool
This method tests for !=
.
sourceimpl<'a> PartialResult for BinaryParseError
impl<'a> PartialResult for BinaryParseError
sourcefn 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. Read more
sourcefn 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. Read more
impl StructuralPartialEq for BinaryParseError
Auto Trait Implementations
impl RefUnwindSafe for BinaryParseError
impl Send for BinaryParseError
impl Sync for BinaryParseError
impl Unpin for BinaryParseError
impl UnwindSafe for BinaryParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more