docs: comment for ipc
This commit is contained in:
@@ -5,6 +5,7 @@ use yrs::StateVector;
|
|||||||
use crate::state::AppState;
|
use crate::state::AppState;
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
|
/// get yDoc created by create_workspace, using same id
|
||||||
pub async fn get_doc<'s>(
|
pub async fn get_doc<'s>(
|
||||||
state: tauri::State<'s, AppState>,
|
state: tauri::State<'s, AppState>,
|
||||||
parameters: GetDocumentParameter,
|
parameters: GetDocumentParameter,
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ use lib0::any::Any;
|
|||||||
use crate::state::AppState;
|
use crate::state::AppState;
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
|
/// create yDoc for a workspace
|
||||||
pub async fn create_workspace<'s>(
|
pub async fn create_workspace<'s>(
|
||||||
state: tauri::State<'s, AppState>,
|
state: tauri::State<'s, AppState>,
|
||||||
parameters: CreateWorkspace,
|
parameters: CreateWorkspace,
|
||||||
|
|||||||
Reference in New Issue
Block a user