pub struct DecodedRequest<'a> {
pub hmac_present: bool,
pub kind: DecodedRequestKind<'a>,
}Expand description
A structurally decoded inbound request, borrowed from the packet.
hmac_present reports only that FLAG_HMAC was set and that the packet is
laid out with an authentication field. It is not an authentication
result: the field may hold arbitrary bytes. Use verify_packet_hmac to
check the MAC once the applicable key is known.
Fields§
§hmac_present: bool§kind: DecodedRequestKind<'a>Trait Implementations§
Source§impl<'a> Clone for DecodedRequest<'a>
impl<'a> Clone for DecodedRequest<'a>
impl<'a> Copy for DecodedRequest<'a>
Source§impl<'a> Debug for DecodedRequest<'a>
impl<'a> Debug for DecodedRequest<'a>
impl<'a> Eq for DecodedRequest<'a>
Source§impl<'a> PartialEq for DecodedRequest<'a>
impl<'a> PartialEq for DecodedRequest<'a>
impl<'a> StructuralPartialEq for DecodedRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for DecodedRequest<'a>
impl<'a> RefUnwindSafe for DecodedRequest<'a>
impl<'a> Send for DecodedRequest<'a>
impl<'a> Sync for DecodedRequest<'a>
impl<'a> Unpin for DecodedRequest<'a>
impl<'a> UnsafeUnpin for DecodedRequest<'a>
impl<'a> UnwindSafe for DecodedRequest<'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