Struct PlacesTimestamp
pub struct PlacesTimestamp(pub u64);
Tuple Fields§
§0: u64
Implementations§
§impl Timestamp
impl Timestamp
pub const EARLIEST: Timestamp = _
pub const EARLIEST: Timestamp = _
In desktop sync, bookmarks are clamped to Jan 23, 1993 (which is 727747200000) There’s no good reason history records could be older than that, so we do the same here (even though desktop’s history currently doesn’t) XXX - there’s probably a case to be made for this being, say, 5 years ago - then all requests earlier than that are collapsed into a single visit at this timestamp.
pub fn now() -> Timestamp
pub fn duration_since(self, other: Timestamp) -> Option<Duration>
pub fn duration_since(self, other: Timestamp) -> Option<Duration>
Returns None if other
is later than self
(Duration may not represent
negative timespans in rust).
pub fn checked_sub(self, d: Duration) -> Option<Timestamp>
pub fn checked_add(self, d: Duration) -> Option<Timestamp>
pub fn as_millis(self) -> u64
pub fn as_millis_i64(self) -> i64
Trait Implementations§
§impl<'de> Deserialize<'de> for Timestamp
impl<'de> Deserialize<'de> for Timestamp
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Timestamp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Timestamp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ServerVisitTimestamp> for Timestamp
impl From<ServerVisitTimestamp> for Timestamp
source§fn from(ts: ServerVisitTimestamp) -> Timestamp
fn from(ts: ServerVisitTimestamp) -> Timestamp
Converts to this type from the input type.
§impl From<SystemTime> for Timestamp
impl From<SystemTime> for Timestamp
§fn from(st: SystemTime) -> Timestamp
fn from(st: SystemTime) -> Timestamp
Converts to this type from the input type.
source§impl From<Timestamp> for ServerVisitTimestamp
impl From<Timestamp> for ServerVisitTimestamp
source§fn from(ts: Timestamp) -> ServerVisitTimestamp
fn from(ts: Timestamp) -> ServerVisitTimestamp
Converts to this type from the input type.
§impl FromSql for Timestamp
impl FromSql for Timestamp
§fn column_result(value: ValueRef<'_>) -> Result<Timestamp, FromSqlError>
fn column_result(value: ValueRef<'_>) -> Result<Timestamp, FromSqlError>
Converts SQLite value into Rust value.
§impl Ord for Timestamp
impl Ord for Timestamp
§impl PartialOrd for Timestamp
impl PartialOrd for Timestamp
§impl Serialize for Timestamp
impl Serialize for Timestamp
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Timestamp
impl Eq for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnwindSafe for Timestamp
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