Skip to content

Commit

Permalink
data: Add ArcPacket
Browse files Browse the repository at this point in the history
Similar use-case of ArcFrame.
  • Loading branch information
lu-zero committed Jul 1, 2018
1 parent 0f50fa2 commit 995faaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/src/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ pub trait WritePacket: Write {
impl<R: Read + ?Sized> ReadPacket for R {}
impl<W: Write + ?Sized> WritePacket for W {}

use std::sync::Arc;

pub type ArcPacket = Arc<Packet>;

#[cfg(test)]
mod test {
use std::io::Cursor;
Expand Down

0 comments on commit 995faaf

Please sign in to comment.