Skip to content

Commit

Permalink
tls_codec: Add missing docs (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkohbrok authored Jan 25, 2024
1 parent b002bd9 commit 3cace2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tls_codec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ pub trait Deserialize: Size {
}
}

/// The `DeserializeBytes` trait defines functions to deserialize a byte slice
/// to a struct or enum. In contrast to [`Deserialize`], this trait operates
/// directly on byte slices and can return any remaining bytes.
pub trait DeserializeBytes: Size {
/// This function deserializes the `bytes` from the provided a `&[u8]`
/// and returns the populated struct, as well as the remaining slice.
Expand Down

0 comments on commit 3cace2c

Please sign in to comment.