dyns 0.7.2

DNS discovery and resolver support for DHTTP applications
Documentation
use std::ops::Deref;

#[derive(Debug, PartialEq, Eq, Hash, Clone)]
pub struct Txt {
    bytes: Vec<u8>,
}

impl Deref for Txt {
    type Target = [u8];

    fn deref(&self) -> &Self::Target {
        &self.bytes
    }
}

impl Txt {
    pub fn new(bytes: Vec<u8>) -> Self {
        Self { bytes }
    }
}