pub enum Decoded {
Some(Header),
Partial,
None,
}
Expand description
The result of decoding a PROXY Protocol v1 header.
Variants§
Some(Header)
The PROXY Protocol v1 header and its extensions decoded.
Partial
Partial data, the caller should read more data.
However, it’s hard to determine how much more data is needed like PROXY Protocol v2.
None
Not a PROXY Protocol v1 header.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decoded
impl RefUnwindSafe for Decoded
impl Send for Decoded
impl Sync for Decoded
impl Unpin for Decoded
impl UnwindSafe for Decoded
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more