crypto: More doc fixes.
parent
861c07d5ce
commit
24baf1fe0f
|
@ -96,6 +96,16 @@ impl Session {
|
||||||
|
|
||||||
/// Encrypt the given event content content as an m.room.encrypted event
|
/// Encrypt the given event content content as an m.room.encrypted event
|
||||||
/// content.
|
/// 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(
|
pub async fn encrypt(
|
||||||
&mut self,
|
&mut self,
|
||||||
recipient_device: &Device,
|
recipient_device: &Device,
|
||||||
|
|
Loading…
Reference in New Issue