mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
docs: Add link to usage example to State docs (#5165)
This commit is contained in:
@@ -9,6 +9,8 @@ use crate::{
|
||||
use state::Container;
|
||||
|
||||
/// A guard for a state value.
|
||||
///
|
||||
/// See [`Manager::manage`](`crate::Manager::manage`) for usage examples.
|
||||
pub struct State<'r, T: Send + Sync + 'static>(&'r T);
|
||||
|
||||
impl<'r, T: Send + Sync + 'static> State<'r, T> {
|
||||
|
||||
Reference in New Issue
Block a user