pub struct PlacesConnection { /* private fields */ }
Implementations§
source§impl PlacesConnection
impl PlacesConnection
pub fn new(db: PlacesDb) -> Self
pub fn new_interrupt_handle(&self) -> Arc<SqlInterruptHandle>
pub fn get_latest_history_metadata_for_url( &self, url: Url, ) -> ApiResult<Option<HistoryMetadata>>
pub fn get_history_metadata_between( &self, start: PlacesTimestamp, end: PlacesTimestamp, ) -> ApiResult<Vec<HistoryMetadata>>
pub fn get_history_metadata_since( &self, start: PlacesTimestamp, ) -> ApiResult<Vec<HistoryMetadata>>
pub fn query_history_metadata( &self, query: String, limit: i32, ) -> ApiResult<Vec<HistoryMetadata>>
pub fn get_history_highlights( &self, weights: HistoryHighlightWeights, limit: i32, ) -> ApiResult<Vec<HistoryHighlight>>
pub fn note_history_metadata_observation( &self, data: HistoryMetadataObservation, options: NoteHistoryMetadataObservationOptions, ) -> ApiResult<()>
pub fn metadata_delete_older_than( &self, older_than: PlacesTimestamp, ) -> ApiResult<()>
pub fn metadata_delete( &self, url: Url, referrer_url: Option<Url>, search_term: Option<String>, ) -> ApiResult<()>
sourcepub fn apply_observation(&self, visit: VisitObservation) -> ApiResult<()>
pub fn apply_observation(&self, visit: VisitObservation) -> ApiResult<()>
Add an observation to the database.
pub fn get_visited_urls_in_range( &self, start: PlacesTimestamp, end: PlacesTimestamp, include_remote: bool, ) -> ApiResult<Vec<Url>>
pub fn get_visit_infos( &self, start_date: PlacesTimestamp, end_date: PlacesTimestamp, exclude_types: VisitTransitionSet, ) -> ApiResult<Vec<HistoryVisitInfo>>
pub fn get_visit_count( &self, exclude_types: VisitTransitionSet, ) -> ApiResult<i64>
pub fn get_visit_page( &self, offset: i64, count: i64, exclude_types: VisitTransitionSet, ) -> ApiResult<Vec<HistoryVisitInfo>>
pub fn get_visit_page_with_bound( &self, bound: i64, offset: i64, count: i64, exclude_types: VisitTransitionSet, ) -> ApiResult<HistoryVisitInfosWithBound>
pub fn get_visited(&self, urls: Vec<String>) -> ApiResult<Vec<bool>>
pub fn delete_visits_for(&self, url: String) -> ApiResult<()>
pub fn delete_visits_between( &self, start: PlacesTimestamp, end: PlacesTimestamp, ) -> ApiResult<()>
pub fn delete_visit( &self, url: String, timestamp: PlacesTimestamp, ) -> ApiResult<()>
pub fn get_top_frecent_site_infos( &self, num_items: i32, threshold_option: FrecencyThresholdOption, ) -> ApiResult<Vec<TopFrecentSiteInfo>>
pub fn delete_everything_history(&self) -> ApiResult<()>
pub fn run_maintenance_prune( &self, db_size_limit: u32, prune_limit: u32, ) -> ApiResult<RunMaintenanceMetrics>
pub fn run_maintenance_vacuum(&self) -> ApiResult<()>
pub fn run_maintenance_optimize(&self) -> ApiResult<()>
pub fn run_maintenance_checkpoint(&self) -> ApiResult<()>
pub fn query_autocomplete( &self, search: String, limit: i32, ) -> ApiResult<Vec<SearchResult>>
pub fn accept_result(&self, search_string: String, url: String) -> ApiResult<()>
pub fn match_url(&self, query: String) -> ApiResult<Option<Url>>
pub fn bookmarks_get_tree( &self, item_guid: &Guid, ) -> ApiResult<Option<BookmarkItem>>
pub fn bookmarks_get_by_guid( &self, guid: &Guid, get_direct_children: bool, ) -> ApiResult<Option<BookmarkItem>>
pub fn bookmarks_get_all_with_url( &self, url: String, ) -> ApiResult<Vec<BookmarkItem>>
pub fn bookmarks_search( &self, query: String, limit: i32, ) -> ApiResult<Vec<BookmarkItem>>
pub fn bookmarks_get_recent(&self, limit: i32) -> ApiResult<Vec<BookmarkItem>>
pub fn bookmarks_delete(&self, id: Guid) -> ApiResult<bool>
pub fn bookmarks_delete_everything(&self) -> ApiResult<()>
pub fn bookmarks_get_url_for_keyword( &self, keyword: String, ) -> ApiResult<Option<Url>>
pub fn bookmarks_insert(&self, data: InsertableBookmarkItem) -> ApiResult<Guid>
pub fn bookmarks_update(&self, item: BookmarkUpdateInfo) -> ApiResult<()>
pub fn bookmarks_count_bookmarks_in_trees( &self, guids: &[Guid], ) -> ApiResult<u32>
pub fn places_history_import_from_ios( &self, db_path: String, last_sync_timestamp: i64, ) -> ApiResult<HistoryMigrationResult>
Trait Implementations§
source§impl AsRef<SqlInterruptHandle> for PlacesConnection
impl AsRef<SqlInterruptHandle> for PlacesConnection
source§fn as_ref(&self) -> &SqlInterruptHandle
fn as_ref(&self) -> &SqlInterruptHandle
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl !Freeze for PlacesConnection
impl !RefUnwindSafe for PlacesConnection
impl Send for PlacesConnection
impl Sync for PlacesConnection
impl Unpin for PlacesConnection
impl !UnwindSafe for PlacesConnection
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
§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