pub struct Request<'a> {
pub hdr: Header,
pub extras: &'a [u8],
pub key: &'a [u8],
pub value: &'a [u8],
}Expand description
A fully parsed binary-protocol request, borrowing from the input buffer.
Produced by try_parse_request on a successful parse.
Fields§
§hdr: HeaderThe request header.
extras: &'a [u8]Extra data (e.g. flags + expiry for store commands).
key: &'a [u8]The key bytes.
value: &'a [u8]The value/body bytes.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'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