/smoltcp-0.9.1/src/wire/ |
D | udp.rs | 12 pub struct Packet<T: AsRef<[u8]>> { struct 34 impl<T: AsRef<[u8]>> Packet<T> { argument 36 pub const fn new_unchecked(buffer: T) -> Packet<T> { in new_unchecked() 37 Packet { buffer } in new_unchecked() 44 pub fn new_checked(buffer: T) -> Result<Packet<T>> { in new_checked() 134 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> { implementation 144 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 203 impl<T: AsRef<[u8]>> AsRef<[u8]> for Packet<T> { implementation 220 packet: &Packet<&T>, in parse() 258 pub(crate) fn emit_header<T: ?Sized>(&self, packet: &mut Packet<&mut T>, payload_len: usize) in emit_header() [all …]
|
D | igmp.rs | 27 pub struct Packet<T: AsRef<[u8]>> { struct 55 impl<T: AsRef<[u8]>> Packet<T> { implementation 57 pub const fn new_unchecked(buffer: T) -> Packet<T> { in new_unchecked() 58 Packet { buffer } in new_unchecked() 65 pub fn new_checked(buffer: T) -> Result<Packet<T>> { in new_checked() 132 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 204 pub fn parse<T>(packet: &Packet<&T>) -> Result<Repr> in parse() 255 pub fn emit<T>(&self, packet: &mut Packet<&mut T>) in emit() 324 impl<'a, T: AsRef<[u8]> + ?Sized> fmt::Display for Packet<&'a T> { implementation 360 impl<T: AsRef<[u8]>> PrettyPrint for Packet<T> { implementation [all …]
|
D | arp.rs | 26 pub struct Packet<T: AsRef<[u8]>> { struct 66 impl<T: AsRef<[u8]>> Packet<T> { implementation 68 pub const fn new_unchecked(buffer: T) -> Packet<T> { in new_unchecked() 69 Packet { buffer } in new_unchecked() 76 pub fn new_checked(buffer: T) -> Result<Packet<T>> { in new_checked() 170 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 247 impl<T: AsRef<[u8]>> AsRef<[u8]> for Packet<T> { implementation 273 pub fn parse<T: AsRef<[u8]>>(packet: &Packet<T>) -> Result<Repr> { in parse() 299 pub fn emit<T: AsRef<[u8]> + AsMut<[u8]>>(&self, packet: &mut Packet<T>) { in emit() 322 impl<T: AsRef<[u8]>> fmt::Display for Packet<T> { implementation [all …]
|
D | icmpv4.rs | 166 pub struct Packet<T: AsRef<[u8]>> { struct 185 impl<T: AsRef<[u8]>> Packet<T> { implementation 187 pub const fn new_unchecked(buffer: T) -> Packet<T> { in new_unchecked() 188 Packet { buffer } in new_unchecked() 195 pub fn new_checked(buffer: T) -> Result<Packet<T>> { in new_checked() 287 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> { implementation 296 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 349 impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> Packet<&'a mut T> { implementation 359 impl<T: AsRef<[u8]>> AsRef<[u8]> for Packet<T> { implementation 396 packet: &Packet<&'a T>, in parse() [all …]
|
D | ipv6.rs | 390 pub struct Packet<T: AsRef<[u8]>> { struct 442 impl<T: AsRef<[u8]>> Packet<T> { implementation 445 pub const fn new_unchecked(buffer: T) -> Packet<T> { in new_unchecked() 446 Packet { buffer } in new_unchecked() 454 pub fn new_checked(buffer: T) -> Result<Packet<T>> { in new_checked() 553 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> { implementation 563 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 638 impl<'a, T: AsRef<[u8]> + ?Sized> fmt::Display for Packet<&'a T> { implementation 650 impl<T: AsRef<[u8]>> AsRef<[u8]> for Packet<T> { implementation 674 pub fn parse<T: AsRef<[u8]> + ?Sized>(packet: &Packet<&T>) -> Result<Repr> { in parse() [all …]
|
D | mod.rs | 142 Hardware as ArpHardware, Operation as ArpOperation, Packet as ArpPacket, Repr as ArpRepr, 147 frag::{Key as SixlowpanFragKey, Packet as SixlowpanFragPacket, Repr as SixlowpanFragRepr}, 148 iphc::{Packet as SixlowpanIphcPacket, Repr as SixlowpanIphcRepr}, 172 Address as Ipv4Address, Cidr as Ipv4Cidr, Key as Ipv4FragKey, Packet as Ipv4Packet, 178 Address as Ipv6Address, Cidr as Ipv6Cidr, Packet as Ipv6Packet, Repr as Ipv6Repr, 201 DstUnreachable as Icmpv4DstUnreachable, Message as Icmpv4Message, Packet as Icmpv4Packet, 207 pub use self::igmp::{IgmpVersion, Packet as IgmpPacket, Repr as IgmpRepr}; 211 DstUnreachable as Icmpv6DstUnreachable, Message as Icmpv6Message, Packet as Icmpv6Packet, 239 pub use self::udp::{Packet as UdpPacket, Repr as UdpRepr, HEADER_LEN as UDP_HEADER_LEN}; 242 Control as TcpControl, Packet as TcpPacket, Repr as TcpRepr, SeqNumber as TcpSeqNumber, [all …]
|
D | mld.rs | 10 use crate::wire::icmpv6::{field, Message, Packet}; 40 impl<T: AsRef<[u8]>> Packet<T> { implementation 88 impl<T: AsRef<[u8]>> Packet<T> { implementation 101 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 158 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 318 pub fn parse<T>(packet: &Packet<&'a T>) -> Result<Repr<'a>> in parse() 349 pub fn emit<T>(&self, packet: &mut Packet<&mut T>) in emit() 445 let packet = Packet::new_unchecked(&QUERY_PACKET_BYTES[..]); in test_query_deconstruct() 464 let mut packet = Packet::new_unchecked(&mut bytes[..]); in test_query_construct() 486 let packet = Packet::new_unchecked(&REPORT_PACKET_BYTES[..]); in test_record_deconstruct() [all …]
|
D | ipv4.rs | 284 pub struct Packet<T: AsRef<[u8]>> { struct 305 impl<T: AsRef<[u8]>> Packet<T> { implementation 307 pub const fn new_unchecked(buffer: T) -> Packet<T> { in new_unchecked() 308 Packet { buffer } in new_unchecked() 315 pub fn new_checked(buffer: T) -> Result<Packet<T>> { in new_checked() 472 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> { implementation 482 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 613 impl<T: AsRef<[u8]>> AsRef<[u8]> for Packet<T> { implementation 633 packet: &Packet<&T>, in parse() 674 packet: &mut Packet<T>, in emit() [all …]
|
D | ndisc.rs | 6 use crate::wire::icmpv6::{field, Message, Packet}; 33 impl<T: AsRef<[u8]>> Packet<T> { implementation 76 impl<T: AsRef<[u8]>> Packet<T> { implementation 89 impl<T: AsRef<[u8]>> Packet<T> { implementation 102 impl<T: AsRef<[u8]>> Packet<T> { implementation 115 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 157 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 170 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 182 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 229 pub fn parse<T>(packet: &Packet<&'a T>) -> Result<Repr<'a>> in parse() [all …]
|
D | icmpv6.rs | 188 pub struct Packet<T: AsRef<[u8]>> { struct 248 impl<T: AsRef<[u8]>> Packet<T> { implementation 250 pub const fn new_unchecked(buffer: T) -> Packet<T> { in new_unchecked() 251 Packet { buffer } in new_unchecked() 258 pub fn new_checked(buffer: T) -> Result<Packet<T>> { in new_checked() 371 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> { implementation 380 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 493 impl<T: AsRef<[u8]>> AsRef<[u8]> for Packet<T> { implementation 546 packet: &Packet<&'a T>, in parse() 552 fn create_packet_from_payload<'a, T>(packet: &Packet<&'a T>) -> Result<(&'a [u8], Ipv6Repr)> in parse() [all …]
|
D | dhcpv4.rs | 116 pub struct Packet<T: AsRef<[u8]>> { struct 234 impl<T: AsRef<[u8]>> Packet<T> { implementation 236 pub const fn new_unchecked(buffer: T) -> Packet<T> { in new_unchecked() 237 Packet { buffer } in new_unchecked() 244 pub fn new_checked(buffer: T) -> Result<Packet<T>> { in new_checked() 420 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 534 impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> Packet<&'a mut T> { implementation 706 pub fn parse<T>(packet: &'a Packet<&'a T>) -> Result<Self> in parse() 832 pub fn emit<T>(&self, packet: &mut Packet<&mut T>) -> Result<()> in emit() 1032 let packet = Packet::new_unchecked(DISCOVER_BYTES); in test_deconstruct_discover() [all …]
|
D | tcp.rs | 72 pub struct Packet<T: AsRef<[u8]>> { struct 114 impl<T: AsRef<[u8]>> Packet<T> { implementation 116 pub const fn new_unchecked(buffer: T) -> Packet<T> { in new_unchecked() 117 Packet { buffer } in new_unchecked() 124 pub fn new_checked(buffer: T) -> Result<Packet<T>> { in new_checked() 350 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> { implementation 368 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 587 impl<T: AsRef<[u8]>> AsRef<[u8]> for Packet<T> { implementation 792 packet: &Packet<&'a T>, in parse() 917 packet: &mut Packet<&mut T>, in emit() [all …]
|
D | dns.rs | 80 pub struct Packet<T: AsRef<[u8]>> { struct 84 impl<T: AsRef<[u8]>> Packet<T> { implementation 86 pub const fn new_unchecked(buffer: T) -> Packet<T> { in new_unchecked() 87 Packet { buffer } in new_unchecked() 94 pub fn new_checked(buffer: T) -> Result<Packet<T>> { in new_checked() 213 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 420 pub fn emit<T: ?Sized>(&self, packet: &mut Packet<&mut T>) in emit() 451 let packet = Packet::new_unchecked(bytes); in test_parse_name() 494 packet: Packet<&'a [u8]>, 503 let packet = Packet::new_unchecked(bytes); in parse() [all …]
|
D | sixlowpan.rs | 250 pub struct Packet<T: AsRef<[u8]>> { struct 269 impl<T: AsRef<[u8]>> Packet<T> { implementation 364 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> { implementation 381 impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> { implementation 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() 539 pub struct Packet<T: AsRef<[u8]>> { struct 543 impl<T: AsRef<[u8]>> Packet<T> { implementation 546 Packet { buffer } in new_unchecked() 908 impl<'a, T: AsRef<[u8]> + ?Sized> Packet<&'a T> { implementation [all …]
|
/smoltcp-0.9.1/src/phy/ |
D | tracer.rs | 14 writer: fn(Instant, Packet), 19 pub fn new(inner: D, writer: fn(timestamp: Instant, packet: Packet)) -> Tracer<D> { in new() 89 writer: fn(Instant, Packet), 102 Packet { in consume() 116 writer: fn(Instant, Packet), 130 Packet { in consume() 141 pub struct Packet<'a> { struct 147 impl<'a> fmt::Display for Packet<'a> { argument
|
/smoltcp-0.9.1/src/socket/ |
D | dns.rs | 10 use crate::wire::dns::{Flags, Opcode, Packet, Question, Rcode, Record, RecordData, Repr, Type}; 367 let p = match Packet::new_checked(payload) { in process() 574 repr.emit(&mut Packet::new_unchecked(payload)); in dispatch()
|
/smoltcp-0.9.1/ |
D | README.md | 377 ### Packet dumps
|