[go: up one dir, main page]

RecentManagerExt

Trait RecentManagerExt 

Source
pub trait RecentManagerExt: IsA<RecentManager> + '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: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
    fn connect_size_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn add_full(&self, uri: &str, recent_data: &RecentData) -> bool

Source

fn add_item(&self, uri: &str) -> bool

Source

fn items(&self) -> Vec<RecentInfo>

Source

fn has_item(&self, uri: &str) -> bool

Source

fn lookup_item(&self, uri: &str) -> Result<Option<RecentInfo>, Error>

Source

fn move_item(&self, uri: &str, new_uri: Option<&str>) -> Result<(), Error>

Source

fn purge_items(&self) -> Result<i32, Error>

Source

fn remove_item(&self, uri: &str) -> Result<(), Error>

Source

fn filename(&self) -> Option<GString>

Source

fn size(&self) -> i32

Source

fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§