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.
§impl<UT> LiftRef<UT> for PlacesConnection
impl<UT> LiftRef<UT> for PlacesConnection
type LiftType = Arc<PlacesConnection>
§impl<UT> LowerError<UT> for PlacesConnection
impl<UT> LowerError<UT> for PlacesConnection
§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
§impl<UT> LowerReturn<UT> for PlacesConnection
impl<UT> LowerReturn<UT> for PlacesConnection
§type ReturnType = <Arc<PlacesConnection> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<PlacesConnection> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
§impl<UT> TypeId<UT> for PlacesConnection
impl<UT> TypeId<UT> for PlacesConnection
const TYPE_ID_META: MetadataBuffer = _
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