pub struct StateView<T> { /* private fields */ }Expand description
A state view handle that requires a key for access.
Implementations§
Source§impl<T> StateView<T>
impl<T> StateView<T>
pub fn new( connection: ConnectionManager, store: SharedStore, view_path: String, initial_data_timeout: Duration, ) -> Self
Sourcepub fn watch(&self, key: &str) -> EntityStream<T>
pub fn watch(&self, key: &str) -> EntityStream<T>
Watch for updates to a specific key.
Sourcepub fn watch_rich(&self, key: &str) -> RichEntityStream<T>
pub fn watch_rich(&self, key: &str) -> RichEntityStream<T>
Watch for updates with before/after diffs.
Auto Trait Implementations§
impl<T> Freeze for StateView<T>
impl<T> !RefUnwindSafe for StateView<T>
impl<T> Send for StateView<T>where
T: Send,
impl<T> Sync for StateView<T>where
T: Sync,
impl<T> Unpin for StateView<T>where
T: Unpin,
impl<T> !UnwindSafe for StateView<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more