summaryrefslogtreecommitdiff
path: root/src/tag.rs
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2018-03-24 18:29:37 -0500
committerStuart Stock <stuart@int08h.com>2018-03-24 18:29:37 -0500
commit806c143905778c9da3ecfafcd2a4eb4c0591cbd9 (patch)
treec178295911b5916b0a79d26a531c077475bf4f0c /src/tag.rs
parente0d15dc1d9bfbd92518916dbfc306cda32c47ff3 (diff)
downloadroughenough-806c143905778c9da3ecfafcd2a4eb4c0591cbd9.zip
Additional documentation
Diffstat (limited to 'src/tag.rs')
-rw-r--r--src/tag.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tag.rs b/src/tag.rs
index 2b9c1f4..34223df 100644
--- a/src/tag.rs
+++ b/src/tag.rs
@@ -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),