Struct places::ffi::PlacesConnection

source ·
pub struct PlacesConnection { /* private fields */ }

Implementations§

source§

impl PlacesConnection

source

pub fn new(db: PlacesDb) -> Self

source

pub fn new_interrupt_handle(&self) -> Arc<SqlInterruptHandle>

source

pub fn get_latest_history_metadata_for_url( &self, url: Url ) -> ApiResult<Option<HistoryMetadata>>

source

pub fn get_history_metadata_between( &self, start: PlacesTimestamp, end: PlacesTimestamp ) -> ApiResult<Vec<HistoryMetadata>>

source

pub fn get_history_metadata_since( &self, start: PlacesTimestamp ) -> ApiResult<Vec<HistoryMetadata>>

source

pub fn query_history_metadata( &self, query: String, limit: i32 ) -> ApiResult<Vec<HistoryMetadata>>

source

pub fn get_history_highlights( &self, weights: HistoryHighlightWeights, limit: i32 ) -> ApiResult<Vec<HistoryHighlight>>

source

pub fn note_history_metadata_observation( &self, data: HistoryMetadataObservation ) -> ApiResult<()>

source

pub fn metadata_delete_older_than( &self, older_than: PlacesTimestamp ) -> ApiResult<()>

source

pub fn metadata_delete( &self, url: Url, referrer_url: Option<Url>, search_term: Option<String> ) -> ApiResult<()>

source

pub fn apply_observation(&self, visit: VisitObservation) -> ApiResult<()>

Add an observation to the database.

source

pub fn get_visited_urls_in_range( &self, start: PlacesTimestamp, end: PlacesTimestamp, include_remote: bool ) -> ApiResult<Vec<Url>>

source

pub fn get_visit_infos( &self, start_date: PlacesTimestamp, end_date: PlacesTimestamp, exclude_types: VisitTransitionSet ) -> ApiResult<Vec<HistoryVisitInfo>>

source

pub fn get_visit_count( &self, exclude_types: VisitTransitionSet ) -> ApiResult<i64>

source

pub fn get_visit_page( &self, offset: i64, count: i64, exclude_types: VisitTransitionSet ) -> ApiResult<Vec<HistoryVisitInfo>>

source

pub fn get_visit_page_with_bound( &self, bound: i64, offset: i64, count: i64, exclude_types: VisitTransitionSet ) -> ApiResult<HistoryVisitInfosWithBound>

source

pub fn get_visited(&self, urls: Vec<String>) -> ApiResult<Vec<bool>>

source

pub fn delete_visits_for(&self, url: String) -> ApiResult<()>

source

pub fn delete_visits_between( &self, start: PlacesTimestamp, end: PlacesTimestamp ) -> ApiResult<()>

source

pub fn delete_visit( &self, url: String, timestamp: PlacesTimestamp ) -> ApiResult<()>

source

pub fn get_top_frecent_site_infos( &self, num_items: i32, threshold_option: FrecencyThresholdOption ) -> ApiResult<Vec<TopFrecentSiteInfo>>

source

pub fn delete_everything_history(&self) -> ApiResult<()>

source

pub fn run_maintenance_prune( &self, db_size_limit: u32, prune_limit: u32 ) -> ApiResult<RunMaintenanceMetrics>

source

pub fn run_maintenance_vacuum(&self) -> ApiResult<()>

source

pub fn run_maintenance_optimize(&self) -> ApiResult<()>

source

pub fn run_maintenance_checkpoint(&self) -> ApiResult<()>

source

pub fn query_autocomplete( &self, search: String, limit: i32 ) -> ApiResult<Vec<SearchResult>>

source

pub fn accept_result(&self, search_string: String, url: String) -> ApiResult<()>

source

pub fn match_url(&self, query: String) -> ApiResult<Option<Url>>

source

pub fn bookmarks_get_tree( &self, item_guid: &Guid ) -> ApiResult<Option<BookmarkItem>>

source

pub fn bookmarks_get_by_guid( &self, guid: &Guid, get_direct_children: bool ) -> ApiResult<Option<BookmarkItem>>

source

pub fn bookmarks_get_all_with_url( &self, url: String ) -> ApiResult<Vec<BookmarkItem>>

source

pub fn bookmarks_get_recent(&self, limit: i32) -> ApiResult<Vec<BookmarkItem>>

source

pub fn bookmarks_delete(&self, id: Guid) -> ApiResult<bool>

source

pub fn bookmarks_delete_everything(&self) -> ApiResult<()>

source

pub fn bookmarks_get_url_for_keyword( &self, keyword: String ) -> ApiResult<Option<Url>>

source

pub fn bookmarks_insert(&self, data: InsertableBookmarkItem) -> ApiResult<Guid>

source

pub fn bookmarks_update(&self, item: BookmarkUpdateInfo) -> ApiResult<()>

source

pub fn bookmarks_count_bookmarks_in_trees( &self, guids: &[Guid] ) -> ApiResult<u32>

source

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

source§

fn as_ref(&self) -> &SqlInterruptHandle

Converts this type into a shared reference of the (usually inferred) input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, UT> HandleAlloc<UT> for T
where T: Send + Sync,

§

fn new_handle(value: Arc<T>) -> Handle

Create a new handle for an Arc value Read more
§

unsafe fn clone_handle(handle: Handle) -> Handle

Clone a handle Read more
§

unsafe fn consume_handle(handle: Handle) -> Arc<T>

Consume a handle, getting back the initial Arc<> Read more
§

unsafe fn get_arc(handle: Handle) -> Arc<Self>

Get a clone of the Arc<> using a “borrowed” handle. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V