crypto: More doc fixes.

master
Damir Jelić 2020-07-21 13:04:51 +02:00
parent 861c07d5ce
commit 24baf1fe0f
1 changed files with 10 additions and 0 deletions

View File

@ -96,6 +96,16 @@ impl Session {
/// Encrypt the given event content content as an m.room.encrypted event
/// content.
///
/// # Arguments
///
/// * `recipient_device` - The device for which this message is going to be
/// encrypted, this needs to be the device that was used to create this
/// session with.
///
/// * `event_type` - The type of the event.
///
/// * `content` - The content of the event.
pub async fn encrypt(
&mut self,
recipient_device: &Device,