pub struct HyperStack { /* private fields */ }Implementations§
Source§impl HyperStack
impl HyperStack
pub fn builder() -> HyperStackBuilder
pub async fn connect(url: &str) -> Result<Self, HyperStackError>
pub async fn get<E: Entity>(&self, key: &str) -> Option<E::Data>
pub async fn list<E: Entity>(&self) -> Vec<E::Data>
pub async fn watch<E: Entity>(&self) -> EntityStream<E::Data>
pub async fn watch_key<E: Entity>(&self, key: &str) -> EntityStream<E::Data>
pub async fn connection_state(&self) -> ConnectionState
pub async fn disconnect(&self)
pub fn store(&self) -> &SharedStore
Auto Trait Implementations§
impl Freeze for HyperStack
impl !RefUnwindSafe for HyperStack
impl Send for HyperStack
impl Sync for HyperStack
impl Unpin for HyperStack
impl !UnwindSafe for HyperStack
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