Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
protocol: fix `Frame` docstring
Fintan Halpenny committed 8 months ago
commit afe0c9475cc97f5d70e6ba6e0fdf629254a7d7be
parent b546945d513740e5a296639f8f3bf40d81fcaa67
1 file changed +2 -0
modified crates/radicle-protocol/src/wire/frame.rs
@@ -184,6 +184,7 @@ impl TryFrom<u8> for StreamKind {

/// Protocol frame.
///
+
/// ```text
///  0                   1                   2                   3
///  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@@ -193,6 +194,7 @@ impl TryFrom<u8> for StreamKind {
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/// |                     Data                                   ...| Data (variable size)
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
/// ```
#[derive(Debug, PartialEq, Eq)]
pub struct Frame<M = Message> {
    /// The protocol version.