Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit53e2c1b

Browse files
committed
add Debug trait to Action and Packet
1 parentec662f9 commit53e2c1b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use tokio_core::net::{TcpStream};
1818
use byteorder::*;
1919

2020
/// Handlers return a variant of this enum to indicate how the proxy should handle the packet.
21+
#[derive(Debug,PartialEq)]
2122
pubenumAction{
2223
/// drop the packet
2324
Drop,
@@ -38,6 +39,7 @@ pub trait PacketHandler {
3839
}
3940

4041
/// A packet is just a wrapper for a Vec<u8>
42+
#[derive(Debug,PartialEq)]
4143
pubstructPacket{
4244
pubbytes:Vec<u8>
4345
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp