Lines Matching refs:T
250 pub struct Packet<T: AsRef<[u8]>> {
251 buffer: T,
269 impl<T: AsRef<[u8]>> Packet<T> {
271 pub const fn new_unchecked(buffer: T) -> Self { in new_unchecked()
279 pub fn new_checked(buffer: T) -> Result<Self> { in new_checked()
314 pub fn into_inner(self) -> T { in into_inner() argument
364 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> {
381 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> {
416 pub fn parse<T: AsRef<[u8]>>(packet: &Packet<T>) -> Result<Self> { in parse()
440 pub fn emit<T: AsRef<[u8]> + AsMut<[u8]>>(&self, packet: &mut Packet<T>) { in emit() argument
539 pub struct Packet<T: AsRef<[u8]>> {
540 buffer: T,
543 impl<T: AsRef<[u8]>> Packet<T> {
545 pub const fn new_unchecked(buffer: T) -> Self { in new_unchecked()
553 pub fn new_checked(buffer: T) -> Result<Self> { in new_checked()
582 pub fn into_inner(self) -> T { in into_inner() argument
908 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> {
925 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> {
1167 pub fn parse<T: AsRef<[u8]> + ?Sized>( in parse()
1168 packet: &Packet<&T>, in parse() argument
1295 pub fn emit<T: AsRef<[u8]> + AsMut<[u8]>>(&self, packet: &mut Packet<T>) { in emit() argument
1509 pub struct ExtHeaderPacket<T: AsRef<[u8]>> {
1510 buffer: T,
1513 impl<T: AsRef<[u8]>> ExtHeaderPacket<T> {
1515 pub const fn new_unchecked(buffer: T) -> Self { in new_unchecked()
1523 pub fn new_checked(buffer: T) -> Result<Self> { in new_checked()
1554 pub fn into_inner(self) -> T { in into_inner() argument
1601 impl<'a, T: AsRef<[u8]> + ?Sized> ExtHeaderPacket<&'a T> {
1609 impl<T: AsRef<[u8]> + AsMut<[u8]>> ExtHeaderPacket<T> {
1674 pub fn parse<T: AsRef<[u8]> + ?Sized>(packet: &ExtHeaderPacket<&T>) -> Result<Self> { in parse()
1703 pub fn emit<T: AsRef<[u8]> + AsMut<[u8]>>(&self, packet: &mut ExtHeaderPacket<T>) { in emit() argument
1728 pub struct UdpNhcPacket<T: AsRef<[u8]>> {
1729 buffer: T,
1732 impl<T: AsRef<[u8]>> UdpNhcPacket<T> {
1734 pub const fn new_unchecked(buffer: T) -> Self { in new_unchecked()
1742 pub fn new_checked(buffer: T) -> Result<Self> { in new_checked()
1766 pub fn into_inner(self) -> T { in into_inner() argument
1876 impl<'a, T: AsRef<[u8]> + ?Sized> UdpNhcPacket<&'a T> {
1884 impl<T: AsRef<[u8]> + AsMut<[u8]>> UdpNhcPacket<T> {
1953 pub fn parse<T: AsRef<[u8]> + ?Sized>( in parse()
1954 packet: &UdpNhcPacket<&'a T>, in parse() argument
2008 pub fn emit<T: AsRef<[u8]> + AsMut<[u8]>>( in emit()
2010 packet: &mut UdpNhcPacket<T>, in emit() argument