1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright 2015 Nathan Sizemore <nathanrsizemore@gmail.com>
//
// This Source Code Form is subject to the terms of the
// Mozilla Public License, v. 2.0. If a copy of the MPL was not
// distributed with this file, You can obtain one at
// http://mozilla.org/MPL/2.0/.
//! The `simple_stream::fame` module contains Trait definitions and built-in types for coupling
//! with a stream type to provide a structred way to send and receive message through streams.
//!
//! # Frame and FrameBuilder
//!
//! A `Frame` is the unit that streams operate on. Frames are used to ensure a complete piece of
//! information has been received and that complete pieces of information are sent without
//! fragmentation. A `FrameBuilder` is used by the stream types to construct a `Frame` from a
//! chunk of bytes.
pub use *;
pub use *;
pub use *;
/// The Frame trait allows for type construction/destruction to/from a chunk of bytes.