Trait sourceview5::prelude::RecentManagerExt
source · pub trait RecentManagerExt: IsA<RecentManager> + Sealed + 'static {
// Provided methods
fn add_full(&self, uri: &str, recent_data: &RecentData) -> bool { ... }
fn add_item(&self, uri: &str) -> bool { ... }
fn items(&self) -> Vec<RecentInfo> { ... }
fn has_item(&self, uri: &str) -> bool { ... }
fn lookup_item(&self, uri: &str) -> Result<Option<RecentInfo>, Error> { ... }
fn move_item(&self, uri: &str, new_uri: Option<&str>) -> Result<(), Error> { ... }
fn purge_items(&self) -> Result<i32, Error> { ... }
fn remove_item(&self, uri: &str) -> Result<(), Error> { ... }
fn filename(&self) -> Option<GString> { ... }
fn size(&self) -> i32 { ... }
fn connect_changed<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
fn connect_size_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
}
Provided Methods§
fn add_full(&self, uri: &str, recent_data: &RecentData) -> bool
fn add_item(&self, uri: &str) -> bool
fn items(&self) -> Vec<RecentInfo>
fn has_item(&self, uri: &str) -> bool
fn lookup_item(&self, uri: &str) -> Result<Option<RecentInfo>, Error>
fn move_item(&self, uri: &str, new_uri: Option<&str>) -> Result<(), Error>
fn purge_items(&self) -> Result<i32, Error>
fn remove_item(&self, uri: &str) -> Result<(), Error>
fn filename(&self) -> Option<GString>
fn size(&self) -> i32
fn connect_changed<F>(&self, f: F) -> SignalHandlerId
fn connect_size_notify<F>(&self, f: F) -> SignalHandlerId
Object Safety§
This trait is not object safe.