#[repr(u8)]pub enum SyncStatus {
Unknown = 0,
New = 1,
Normal = 2,
}
Expand description
Re SyncStatus - note that:
- logins has synced=0, changed=1, new=2
- desktop bookmarks has unknown=0, new=1, normal=2
This is “places”, so eventually bookmarks will have a status - should history and bookmarks share this enum? Note that history specifically needs neither (a) login’s “changed” (the changeCounter works there), nor (b) bookmark’s “unknown” (as that’s only used after a restore). History only needs a distinction between “synced” and “new” so it doesn’t accumulate never-to-be-synced tombstones - so we basically copy bookmarks and treat unknown as new. Which means we get the “bonus side-effect” ;) of ::Unknown replacing Option<>!
Note that some of these values are in schema.rs
Variants§
Implementations§
Trait Implementations§
source§impl Clone for SyncStatus
impl Clone for SyncStatus
source§fn clone(&self) -> SyncStatus
fn clone(&self) -> SyncStatus
Returns a copy 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 moresource§impl Debug for SyncStatus
impl Debug for SyncStatus
source§impl FromSql for SyncStatus
impl FromSql for SyncStatus
source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
source§impl Hash for SyncStatus
impl Hash for SyncStatus
source§impl Ord for SyncStatus
impl Ord for SyncStatus
source§fn cmp(&self, other: &SyncStatus) -> Ordering
fn cmp(&self, other: &SyncStatus) -> Ordering
1.21.0 · 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 SyncStatus
impl PartialEq for SyncStatus
source§impl PartialOrd for SyncStatus
impl PartialOrd for SyncStatus
source§impl ToSql for SyncStatus
impl ToSql for SyncStatus
impl Copy for SyncStatus
impl Eq for SyncStatus
impl StructuralPartialEq for SyncStatus
Auto Trait Implementations§
impl Freeze for SyncStatus
impl RefUnwindSafe for SyncStatus
impl Send for SyncStatus
impl Sync for SyncStatus
impl Unpin for SyncStatus
impl UnwindSafe for SyncStatus
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more