]>
code.octet-stream.net Git - m17rt/blob - m17app/src/adapter.rs
1bc09719526278c23ab5fe59cb5b0a9e121075ad
1 use crate::app
::TxHandle
;
2 use m17core
::protocol
::{LsfFrame
, PacketType
};
5 pub trait PacketAdapter
: Send
+ Sync
+ '
static {
6 fn adapter_registered(&self, handle
: TxHandle
);
9 fn packet_received(&self, lsf
: LsfFrame
, packet_type
: PacketType
, content
: Arc
<[u8]>);
12 pub trait StreamAdapter
: Send
+ Sync
+ '
static {}