Trait RecentManagerExt

Source
pub trait RecentManagerExt: 'static {
    // Required methods
    fn add_full(&self, uri: &str, recent_data: &RecentData) -> bool;
    fn add_item(&self, uri: &str) -> bool;
    fn get_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 get_property_filename(&self) -> Option<GString>;
    fn get_property_size(&self) -> i32;
    fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
    fn connect_property_size_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}

Required Methods§

Source

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

Source

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

Source

fn get_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 get_property_filename(&self) -> Option<GString>

Source

fn get_property_size(&self) -> i32

Source

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

Source

fn connect_property_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§