blob: 0c07c31b2bb79d351e58d7edd2fd948176b617f4 [file] [log] [blame]
use super::prelude::*;
#[derive(Debug)]
pub struct QEnvironmentUnset<'a> {
pub key: &'a [u8],
}
impl<'a> ParseCommand<'a> for QEnvironmentUnset<'a> {
#[inline(always)]
fn from_packet(buf: PacketBuf<'a>) -> Option<Self> {
let body = buf.into_body();
let key = match body {
[b':', key @ ..] => decode_hex_buf(key).ok()?,
_ => return None,
};
Some(QEnvironmentUnset { key })
}
}