diff options
author | 2019-02-08 17:13:26 +0000 | |
---|---|---|
committer | 2019-02-08 17:13:26 +0000 | |
commit | 0f2fff2a9ba9ba21daa50fb46f271cd2d987da21 (patch) | |
tree | 4e1179577a32191abc845cb5f21e27464fdd2781 /src/lib.rs | |
parent | 1d40db7359c40cd4d8b1875937770be502d1826a (diff) | |
download | quiche-0f2fff2a9ba9ba21daa50fb46f271cd2d987da21.tar.gz quiche-0f2fff2a9ba9ba21daa50fb46f271cd2d987da21.tar.zst quiche-0f2fff2a9ba9ba21daa50fb46f271cd2d987da21.zip |
add description for Result
Diffstat (limited to '')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -190,6 +190,12 @@ const PAYLOAD_MIN_LEN: usize = 4; // TODO: calculate draining timer as 3 * RTO const DRAINING_TIMEOUT: time::Duration = time::Duration::from_millis(200); +/// A specialized [`Result`] type for quiche operations. +/// +/// This type is used throughout quiche's public API for any operation that +/// can produce an error. +/// +/// [`Result`]: https://doc.rust-lang.org/std/result/enum.Result.html pub type Result<T> = std::result::Result<T, Error>; /// A QUIC error. |