diff options
author | Stuart Stock <stuart@int08h.com> | 2018-03-24 18:29:37 -0500 |
---|---|---|
committer | Stuart Stock <stuart@int08h.com> | 2018-03-24 18:29:37 -0500 |
commit | 806c143905778c9da3ecfafcd2a4eb4c0591cbd9 (patch) | |
tree | c178295911b5916b0a79d26a531c077475bf4f0c /src/tag.rs | |
parent | e0d15dc1d9bfbd92518916dbfc306cda32c47ff3 (diff) | |
download | roughenough-806c143905778c9da3ecfafcd2a4eb4c0591cbd9.zip |
Additional documentation
Diffstat (limited to 'src/tag.rs')
-rw-r--r-- | src/tag.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -59,6 +59,8 @@ impl Tag { } } + /// Return the `Tag` corresponding to the on-the-wire representation in `bytes` or an + /// `Error::InvalidTag` if `bytes` do not correspond to a valid tag. pub fn from_wire(bytes: &[u8]) -> Result<Self, Error> { match bytes { b"CERT" => Ok(Tag::CERT), |