pub struct Connection(/* private fields */);Expand description
The connection to zero-cache (Connection in
packages/zero-client/src/client/connection.ts).
Implementations§
Source§impl Connection
impl Connection
Sourcepub fn state(&self) -> ConnectionState
pub fn state(&self) -> ConnectionState
The state now.
Sourcepub fn update_needed(&self) -> Option<UpdateNeededReason>
pub fn update_needed(&self) -> Option<UpdateNeededReason>
Why the app must be updated to sync, once the server said so
(onUpdateNeeded). Reconnecting doesn’t help.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Connection
impl !Send for Connection
impl !Sync for Connection
impl !UnwindSafe for Connection
impl Forget for Connection
impl Freeze for Connection
impl Move for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
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