提交 5da096fd authored 作者: Serhij S's avatar Serhij S

doc fixes

上级 bba93044
...@@ -77,7 +77,7 @@ impl Error { ...@@ -77,7 +77,7 @@ impl Error {
} }
} }
/// Message delivery policies, used by [`hub::Hub`], [`pchannel::Receiver`] and [`pdeque::Deque`] /// Data delivery policies, used by [`hub::Hub`], [`pchannel::Receiver`] and [`pdeque::Deque`]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Default)] #[derive(Debug, Copy, Clone, Eq, PartialEq, Default)]
pub enum DeliveryPolicy { pub enum DeliveryPolicy {
#[default] #[default]
...@@ -85,7 +85,7 @@ pub enum DeliveryPolicy { ...@@ -85,7 +85,7 @@ pub enum DeliveryPolicy {
Always, Always,
/// skip delivery if no room /// skip delivery if no room
Optional, Optional,
/// always deliver the message but always in a single copy (latest) /// always deliver the frame but always in a single copy (latest)
Single, Single,
/// deliver a single latest copy, skip if no room /// deliver a single latest copy, skip if no room
SingleOptional, SingleOptional,
...@@ -110,7 +110,7 @@ where ...@@ -110,7 +110,7 @@ where
fn eq_kind(&self, other: &Self) -> bool { fn eq_kind(&self, other: &Self) -> bool {
mem::discriminant(self) == mem::discriminant(other) mem::discriminant(self) == mem::discriminant(other)
} }
/// If a message expires during storing/delivering, it is not delivered /// If a frame expires during storing/delivering, it is not delivered
fn is_expired(&self) -> bool { fn is_expired(&self) -> bool {
false false
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论