pub struct ServerKnowledge(pub i64);Expand description
An opaque, monotonically increasing sync cursor returned alongside most list/write
responses. Store it and pass it back into .with_server_knowledge() on a later call to
receive only the changes since that point (a delta request).
Tuple Fields§
§0: i64Trait Implementations§
Source§impl Clone for ServerKnowledge
impl Clone for ServerKnowledge
Source§fn clone(&self) -> ServerKnowledge
fn clone(&self) -> ServerKnowledge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ServerKnowledge
Source§impl Debug for ServerKnowledge
impl Debug for ServerKnowledge
Source§impl<'de> Deserialize<'de> for ServerKnowledge
impl<'de> Deserialize<'de> for ServerKnowledge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ServerKnowledge
impl Display for ServerKnowledge
impl Eq for ServerKnowledge
Source§impl From<ServerKnowledge> for i64
impl From<ServerKnowledge> for i64
Source§fn from(value: ServerKnowledge) -> Self
fn from(value: ServerKnowledge) -> Self
Converts to this type from the input type.
Source§impl From<i64> for ServerKnowledge
impl From<i64> for ServerKnowledge
Source§impl Hash for ServerKnowledge
impl Hash for ServerKnowledge
Source§impl Ord for ServerKnowledge
impl Ord for ServerKnowledge
Source§fn cmp(&self, other: &ServerKnowledge) -> Ordering
fn cmp(&self, other: &ServerKnowledge) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ServerKnowledge
impl PartialEq for ServerKnowledge
Source§impl PartialEq<ServerKnowledge> for i64
impl PartialEq<ServerKnowledge> for i64
Source§impl PartialEq<i64> for ServerKnowledge
impl PartialEq<i64> for ServerKnowledge
Source§impl PartialOrd for ServerKnowledge
impl PartialOrd for ServerKnowledge
Source§impl PartialOrd<ServerKnowledge> for i64
impl PartialOrd<ServerKnowledge> for i64
Source§impl PartialOrd<i64> for ServerKnowledge
impl PartialOrd<i64> for ServerKnowledge
Source§impl Serialize for ServerKnowledge
impl Serialize for ServerKnowledge
impl StructuralPartialEq for ServerKnowledge
Auto Trait Implementations§
impl Freeze for ServerKnowledge
impl RefUnwindSafe for ServerKnowledge
impl Send for ServerKnowledge
impl Sync for ServerKnowledge
impl Unpin for ServerKnowledge
impl UnsafeUnpin for ServerKnowledge
impl UnwindSafe for ServerKnowledge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.