use crate::*;
impl ResponseTrait for UdpResponseText {
type OutputText = UdpResponseText;
type OutputBinary = UdpResponseBinary;
#[inline(always)]
fn from(response: &[u8]) -> Self::OutputText
where
Self: Sized,
{
<UdpResponseBinary as ResponseTrait>::from(response).text()
}
#[inline(always)]
fn text(&self) -> Self::OutputText {
self.clone()
}
#[inline(always)]
fn binary(&self) -> UdpResponseBinary {
self.clone().into_bytes()
}
}