chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cb699d
)
note about Box vs Vec
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 1 Aug 2021 23:55:01 +0000
(
00:55
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 1 Aug 2021 23:55:01 +0000
(
00:55
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/slip.rs
patch
|
blob
|
history
diff --git
a/src/slip.rs
b/src/slip.rs
index 1713057cb156dbaa8d050662859e32d8ae3e7553..07ae827b6d07ababc50a41d28277477b2fe4c2a0 100644
(file)
--- a/
src/slip.rs
+++ b/
src/slip.rs
@@
-66,6
+66,10
@@
where EH: FnMut(PacketError)
pub type Frame = Vec<u8>;
pub type FramesData = Vec<Vec<u8>>;
+//pub type Frame = Box<[u8]>;
+//pub type FramesData = Vec<Frame>;
+// `From<Box<[u8]>>` is not implemented for `Bytes`
+
#[derive(Default)]
pub struct Frames {