mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
refactor: backport pcap impl
This commit is contained in:
parent
49096e46bb
commit
3d47180e85
7 changed files with 272 additions and 235 deletions
|
|
@ -14,7 +14,7 @@ lazy_static! {
|
|||
pub(crate) static ref CAPTURE_WRITER: Mutex<Option<Box<dyn Writer + Send + Sync>>> = Mutex::new(None);
|
||||
}
|
||||
|
||||
pub trait Writer {
|
||||
pub(crate) trait Writer {
|
||||
fn write(&mut self, packet: &CapturePacket, data: &[u8]) -> crate::GDResult<()>;
|
||||
fn new_connect(&mut self, packet: &CapturePacket) -> crate::GDResult<()>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue