From fc51b3d13280e1688645808e88c46e9223e19ec5 Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 3 Oct 2024 22:36:51 +0800 Subject: [PATCH] More docs for StoreBuilder::build --- plugins/store/src/store.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/store/src/store.rs b/plugins/store/src/store.rs index 5efbd173..15a1d49a 100644 --- a/plugins/store/src/store.rs +++ b/plugins/store/src/store.rs @@ -213,6 +213,14 @@ impl StoreBuilder { /// Builds the [`Store`]. /// + /// This loads the store from disk and put the store in the app's resource table, + /// to remove it from the resource table, call [`Store::close_store`] + /// + /// # Errors + /// + /// If a store with this path is already in the resource table, + /// will return a [`crate::Error::AlreadyExists`] + /// /// # Examples /// ``` /// tauri::Builder::default()