• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // use super::prelude::*; // unused
2 use crate::protocol::common::qxfer::ParseAnnex;
3 use crate::protocol::common::qxfer::QXferReadBase;
4 
5 pub type qXferFeaturesRead<'a> = QXferReadBase<'a, FeaturesAnnex<'a>>;
6 
7 #[derive(Debug)]
8 pub struct FeaturesAnnex<'a> {
9     pub name: &'a [u8],
10 }
11 
12 impl<'a> ParseAnnex<'a> for FeaturesAnnex<'a> {
13     #[inline(always)]
from_buf(buf: &'a [u8]) -> Option<Self>14     fn from_buf(buf: &'a [u8]) -> Option<Self> {
15         Some(FeaturesAnnex { name: buf })
16     }
17 }
18