write some tests

This commit is contained in:
nora 2022-02-14 22:56:07 +01:00
parent 5a99ae4cd2
commit b63b2dee2a
7 changed files with 172 additions and 17 deletions

View file

@ -30,7 +30,7 @@ pub enum FrameType {
Heartbeat = 8,
}
pub async fn write_frame<W>(mut w: W, frame: &Frame) -> Result<()>
pub async fn write_frame<W>(frame: &Frame, mut w: W, ) -> Result<()>
where
W: AsyncWriteExt + Unpin,
{