Lines Matching refs:T
166 pub struct Packet<T: AsRef<[u8]>> {
167 buffer: T,
185 impl<T: AsRef<[u8]>> Packet<T> {
187 pub const fn new_unchecked(buffer: T) -> Packet<T> { in new_unchecked() argument
195 pub fn new_checked(buffer: T) -> Result<Packet<T>> { in new_checked() argument
217 pub fn into_inner(self) -> T { in into_inner() argument
287 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> {
296 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> {
349 impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> Packet<&'a mut T> {
359 impl<T: AsRef<[u8]>> AsRef<[u8]> for Packet<T> {
395 pub fn parse<T>( in parse()
396 packet: &Packet<&'a T>, in parse() argument
400 T: AsRef<[u8]> + ?Sized, in parse()
485 pub fn emit<T>(&self, packet: &mut Packet<&mut T>, checksum_caps: &ChecksumCapabilities) in emit() argument
487 T: AsRef<[u8]> + AsMut<[u8]> + ?Sized, in emit()
556 impl<'a, T: AsRef<[u8]> + ?Sized> fmt::Display for Packet<&'a T> {
614 impl<T: AsRef<[u8]>> PrettyPrint for Packet<T> {