pub enum Decoded<'a> {
Some(DecodedHeader<'a>),
Partial(NonZeroUsize),
None,
}
Expand description
The result of decoding a PROXY Protocol v2 header.
Variants§
Some(DecodedHeader<'a>)
The PROXY Protocol v2 header and its extensions decoded.
Partial(NonZeroUsize)
Partial data, the caller should read more data.
None
Not a PROXY Protocol v2 header.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Decoded<'a>
impl<'a> RefUnwindSafe for Decoded<'a>
impl<'a> Send for Decoded<'a>
impl<'a> Sync for Decoded<'a>
impl<'a> Unpin for Decoded<'a>
impl<'a> UnwindSafe for Decoded<'a>
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