blob: d890bc43c51740d40030f3a0689ca6cc49a5da4b [file] [log] [blame]
use super::prelude::*;
#[derive(Debug)]
pub struct QEnvironmentUnset<'a> {
pub key: &'a [u8],
}
impl<'a> ParseCommand<'a> for QEnvironmentUnset<'a> {
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 })
}
}