mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
fix doc comments
This commit is contained in:
@@ -78,9 +78,8 @@ impl BackupProvider {
|
|||||||
/// or database are happening, this is done by calling the [`Accounts::stop_io`] or
|
/// or database are happening, this is done by calling the [`Accounts::stop_io`] or
|
||||||
/// [`Context::stop_io`] APIs first.
|
/// [`Context::stop_io`] APIs first.
|
||||||
///
|
///
|
||||||
/// This will acquire the global "ongoing process" mutex. You must call
|
/// This will acquire the global "ongoing process" mutex, which can be used to cancel
|
||||||
/// [`BackupProvider::join`] after creating this struct, otherwise this will not respect
|
/// the process.
|
||||||
/// the possible cancellation of the "ongoing process".
|
|
||||||
///
|
///
|
||||||
/// [`Accounts::stop_io`]: crate::accounts::Accounts::stop_io
|
/// [`Accounts::stop_io`]: crate::accounts::Accounts::stop_io
|
||||||
pub async fn prepare(context: &Context) -> Result<Self> {
|
pub async fn prepare(context: &Context) -> Result<Self> {
|
||||||
@@ -292,7 +291,7 @@ impl From<SendProgress> for EventType {
|
|||||||
/// This is a long running operation which will only when completed.
|
/// This is a long running operation which will only when completed.
|
||||||
///
|
///
|
||||||
/// Using [`Qr`] as argument is a bit odd as it only accepts one specific variant of it. It
|
/// Using [`Qr`] as argument is a bit odd as it only accepts one specific variant of it. It
|
||||||
/// does avoid having [`sendme::provider::Ticket`] in the primary API however, without
|
/// does avoid having [`iroh::provider::Ticket`] in the primary API however, without
|
||||||
/// having to revert to untyped bytes.
|
/// having to revert to untyped bytes.
|
||||||
pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> {
|
pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> {
|
||||||
ensure!(
|
ensure!(
|
||||||
|
|||||||
@@ -504,7 +504,7 @@ fn decode_webrtc_instance(_context: &Context, qr: &str) -> Result<Qr> {
|
|||||||
/// Decodes a [`DCBACKUP_SCHEME`] QR code.
|
/// Decodes a [`DCBACKUP_SCHEME`] QR code.
|
||||||
///
|
///
|
||||||
/// The format of this scheme is `DCBACKUP:<encoded ticket>`. The encoding is the
|
/// The format of this scheme is `DCBACKUP:<encoded ticket>`. The encoding is the
|
||||||
/// [`sendme::provider::Ticket`]'s `Display` impl.
|
/// [`iroh::provider::Ticket`]'s `Display` impl.
|
||||||
fn decode_backup(qr: &str) -> Result<Qr> {
|
fn decode_backup(qr: &str) -> Result<Qr> {
|
||||||
let payload = qr
|
let payload = qr
|
||||||
.strip_prefix(DCBACKUP_SCHEME)
|
.strip_prefix(DCBACKUP_SCHEME)
|
||||||
|
|||||||
@@ -1247,6 +1247,8 @@ pub(crate) async fn aeap_explanation_and_link(
|
|||||||
///
|
///
|
||||||
/// The default is "Scan to set up second device for <account name (account addr)>". The
|
/// The default is "Scan to set up second device for <account name (account addr)>". The
|
||||||
/// account name and address are looked up from the context.
|
/// account name and address are looked up from the context.
|
||||||
|
///
|
||||||
|
/// [`Qr::Backup`]: crate::qr::Qr::Backup
|
||||||
pub(crate) async fn backup_transfer_qr(context: &Context) -> Result<String> {
|
pub(crate) async fn backup_transfer_qr(context: &Context) -> Result<String> {
|
||||||
let contact = Contact::get_by_id(context, ContactId::SELF).await?;
|
let contact = Contact::get_by_id(context, ContactId::SELF).await?;
|
||||||
let addr = contact.get_addr();
|
let addr = contact.get_addr();
|
||||||
|
|||||||
Reference in New Issue
Block a user