Lines Matching defs:Ping
71 Ping = 0x6,
91 Ping(Ping),
159 pub struct Ping {
315 Payload::Ping(_) => FrameType::Ping,
581 impl Ping {
582 /// Creates a new Ping instance with the provided data.
584 Ping { data }
587 /// Returns the data associated with the Ping.
593 pub fn ack(ping: Ping) -> Frame {
594 Frame::new(0, FrameFlags::new(0x1), Payload::Ping(ping))
645 /// UT test cases for `Ping`.
648 /// 1. Creates a `Ping` instance with specific data.
649 /// 2. Checks if the data of the `Ping` instance is correct.
653 let ping = Ping::new(data);
729 let payload_ping = Payload::Ping(Ping::new([0; 8]));
730 assert_eq!(payload_ping.frame_type(), FrameType::Ping);