blob: 8fe9650ad3f69c37ca08156a270c2a2740895e8e [file] [log] [blame]
// use super::prelude::*; // unused
use crate::protocol::common::qxfer::{ParseAnnex, QXferReadBase};
pub type qXferFeaturesRead<'a> = QXferReadBase<'a, FeaturesAnnex<'a>>;
#[derive(Debug)]
pub struct FeaturesAnnex<'a> {
pub name: &'a [u8],
}
impl<'a> ParseAnnex<'a> for FeaturesAnnex<'a> {
fn from_buf(buf: &'a [u8]) -> Option<Self> {
Some(FeaturesAnnex { name: buf })
}
}