mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-20 18:23:41 +00:00
fix docs
This commit is contained in:
@@ -943,7 +943,7 @@ impl AckFrequency {
|
||||
/* Address Discovery https://datatracker.ietf.org/doc/draft-seemann-quic-address-discovery/ */
|
||||
|
||||
/// Conjuction of the information contained in the address discovery frames
|
||||
/// ([`Type::OBSERVED_IPV4_ADDR`], [`Type::OBSERVED_IPV6_ADDR`]).
|
||||
/// ([`FrameType::OBSERVED_IPV4_ADDR`], [`FrameType::OBSERVED_IPV6_ADDR`]).
|
||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||
pub(crate) struct ObservedAddr {
|
||||
/// Monotonically increasing integer within the same connection.
|
||||
@@ -963,7 +963,7 @@ impl ObservedAddr {
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the [`Type`] for this frame.
|
||||
/// Get the [`FrameType`] for this frame.
|
||||
pub(crate) fn get_type(&self) -> FrameType {
|
||||
if self.ip.is_ipv6() {
|
||||
FrameType::OBSERVED_IPV6_ADDR
|
||||
@@ -999,7 +999,7 @@ impl ObservedAddr {
|
||||
/// Reads the frame contents from the buffer.
|
||||
///
|
||||
/// Should only be called when the fram type has been identified as
|
||||
/// [`Type::OBSERVED_IPV4_ADDR`] or [`Type::OBSERVED_IPV6_ADDR`].
|
||||
/// [`FrameType::OBSERVED_IPV4_ADDR`] or [`FrameType::OBSERVED_IPV6_ADDR`].
|
||||
pub(crate) fn read<R: Buf>(bytes: &mut R, is_ipv6: bool) -> coding::Result<Self> {
|
||||
let seq_no = bytes.get()?;
|
||||
let ip = if is_ipv6 {
|
||||
|
||||
Reference in New Issue
Block a user