mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
tweak documentation towards https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text - thanks @flub
This commit is contained in:
@@ -174,7 +174,8 @@ impl ChatId {
|
|||||||
self.set_blocked(context, Blocked::Not).await;
|
self.set_blocked(context, Blocked::Not).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set protection without sending a message.
|
/// Sets protection without sending a message.
|
||||||
|
///
|
||||||
/// Used when a message arrives indicating that someone else has
|
/// Used when a message arrives indicating that someone else has
|
||||||
/// changed the protection value for a chat.
|
/// changed the protection value for a chat.
|
||||||
pub(crate) async fn inner_set_protection(
|
pub(crate) async fn inner_set_protection(
|
||||||
@@ -226,7 +227,7 @@ impl ChatId {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// returns a stock message saying that protection status has changed.
|
/// Returns a stock message saying that protection status has changed.
|
||||||
pub(crate) async fn get_protection_msg(
|
pub(crate) async fn get_protection_msg(
|
||||||
self,
|
self,
|
||||||
context: &Context,
|
context: &Context,
|
||||||
@@ -246,7 +247,7 @@ impl ChatId {
|
|||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// adds or sends out a protection-info-message
|
/// Adds or sends out a protection-info-message.
|
||||||
pub(crate) async fn add_protection_msg(
|
pub(crate) async fn add_protection_msg(
|
||||||
self,
|
self,
|
||||||
context: &Context,
|
context: &Context,
|
||||||
@@ -272,7 +273,7 @@ impl ChatId {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set protection and sends or adds a message.
|
/// Sets protection and sends or adds a message.
|
||||||
pub async fn set_protection(
|
pub async fn set_protection(
|
||||||
self,
|
self,
|
||||||
context: &Context,
|
context: &Context,
|
||||||
|
|||||||
Reference in New Issue
Block a user