1 use super::prelude::*; 2 3 #[derive(Debug)] 4 pub struct G<'a> { 5 pub vals: &'a [u8], 6 } 7 8 impl<'a> ParseCommand<'a> for G<'a> { 9 #[inline(always)] from_packet(buf: PacketBuf<'a>) -> Option<Self>10 fn from_packet(buf: PacketBuf<'a>) -> Option<Self> { 11 Some(G { 12 vals: decode_hex_buf(buf.into_body()).ok()?, 13 }) 14 } 15 } 16