pub struct OnDisconnect { /* private fields */ }Expand description
Placeholder implementation of the Realtime Database OnDisconnect API.
Mirrors the surface of the JS SDK (packages/database/src/api/OnDisconnect.ts),
but currently returns an error until realtime transports are implemented.
Implementations§
Source§impl OnDisconnect
impl OnDisconnect
Sourcepub fn set(&self, _value: Value) -> DatabaseResult<()>
pub fn set(&self, _value: Value) -> DatabaseResult<()>
Schedules a write for when the client disconnects. Not yet implemented.
Sourcepub fn update(&self, _updates: Value) -> DatabaseResult<()>
pub fn update(&self, _updates: Value) -> DatabaseResult<()>
Schedules an update when the client disconnects. Not yet implemented.
Sourcepub fn remove(&self) -> DatabaseResult<()>
pub fn remove(&self) -> DatabaseResult<()>
Schedules a remove when the client disconnects. Not yet implemented.
Sourcepub fn cancel(&self) -> DatabaseResult<()>
pub fn cancel(&self) -> DatabaseResult<()>
Cancels all pending on-disconnect operations. Not yet implemented.
Trait Implementations§
Source§impl Clone for OnDisconnect
impl Clone for OnDisconnect
Source§fn clone(&self) -> OnDisconnect
fn clone(&self) -> OnDisconnect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OnDisconnect
impl !RefUnwindSafe for OnDisconnect
impl Send for OnDisconnect
impl Sync for OnDisconnect
impl Unpin for OnDisconnect
impl !UnwindSafe for OnDisconnect
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