pub struct Client(/* private fields */);Implementations§
source§impl Client
impl Client
pub fn new(client: impl ClientTrait + 'static) -> Self
pub fn clone(&self) -> Self
pub fn connect(&self) -> Result<()>
pub fn connected(&self) -> bool
pub fn disconnect(&self) -> bool
pub fn get_entities(&self, entity_type: &str) -> Result<Vec<DatabaseEntity>>
pub fn get_entity(&self, entity_id: &str) -> Result<DatabaseEntity>
pub fn get_notifications(&self) -> Result<Vec<DatabaseNotification>>
pub fn read(&self, requests: &Vec<DatabaseField>) -> Result<()>
pub fn register_notification( &self, config: &NotificationConfig, ) -> Result<NotificationToken>
pub fn unregister_notification(&self, token: &NotificationToken) -> Result<()>
pub fn write(&self, requests: &Vec<DatabaseField>) -> Result<()>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl !Send for Client
impl !Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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