Display stuff

This commit is contained in:
2026-07-14 22:53:27 +02:00
parent b8162ebe3c
commit 7be4040267
4 changed files with 31 additions and 12 deletions
+6
View File
@@ -40,6 +40,12 @@ impl<T> State<T> {
}
}
impl<T: std::fmt::Display> State<T> {
pub async fn display(&self) -> String {
self.lock().await.to_string()
}
}
impl<'a, T> std::ops::Deref for StateGuard<'a, T> {
type Target = T;