pub struct BookmarkFile { /* private fields */ }Expand description
GLib type: Boxed type with copy-on-clone semantics.
Implementations§
Source§impl BookmarkFile
impl BookmarkFile
Sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut GBookmarkFile) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GBookmarkFile) -> &Self
Borrows the underlying C value.
Sourcepub unsafe fn from_glib_ptr_borrow_mut(
ptr: &mut *mut GBookmarkFile,
) -> &mut Self
pub unsafe fn from_glib_ptr_borrow_mut( ptr: &mut *mut GBookmarkFile, ) -> &mut Self
Borrows the underlying C value mutably.
Source§impl BookmarkFile
impl BookmarkFile
pub fn new() -> BookmarkFile
pub fn add_application( &mut self, uri: &str, name: Option<&str>, exec: Option<&str>, )
pub fn add_group(&mut self, uri: &str, group: &str)
pub fn added(&self, uri: &str) -> Result<time_t, Error>
👎Deprecated:
Since 2.66
pub fn added_date_time(&self, uri: &str) -> Result<DateTime, Error>
Available on crate feature
v2_66 only.pub fn app_info( &self, uri: &str, name: &str, ) -> Result<(GString, u32, time_t), Error>
👎Deprecated:
Since 2.66
pub fn application_info( &self, uri: &str, name: &str, ) -> Result<(GString, u32, DateTime), Error>
Available on crate feature
v2_66 only.pub fn applications(&self, uri: &str) -> Result<Vec<GString>, Error>
pub fn description(&self, uri: &str) -> Result<GString, Error>
pub fn groups(&self, uri: &str) -> Result<Vec<GString>, Error>
pub fn icon(&self, uri: &str) -> Result<(GString, GString), Error>
pub fn is_private(&self, uri: &str) -> Result<(), Error>
pub fn mime_type(&self, uri: &str) -> Result<GString, Error>
pub fn modified(&self, uri: &str) -> Result<time_t, Error>
👎Deprecated:
Since 2.66
pub fn modified_date_time(&self, uri: &str) -> Result<DateTime, Error>
Available on crate feature
v2_66 only.pub fn size(&self) -> i32
pub fn title(&self, uri: Option<&str>) -> Result<GString, Error>
pub fn uris(&self) -> Vec<GString>
pub fn visited(&self, uri: &str) -> Result<time_t, Error>
👎Deprecated:
Since 2.66
pub fn visited_date_time(&self, uri: &str) -> Result<DateTime, Error>
Available on crate feature
v2_66 only.pub fn has_application(&self, uri: &str, name: &str) -> Result<(), Error>
pub fn has_group(&self, uri: &str, group: &str) -> Result<(), Error>
pub fn has_item(&self, uri: &str) -> bool
pub fn load_from_data(&mut self, data: &[u8]) -> Result<(), Error>
pub fn load_from_data_dirs( &mut self, file: impl AsRef<Path>, ) -> Result<PathBuf, Error>
pub fn load_from_file( &mut self, filename: impl AsRef<Path>, ) -> Result<(), Error>
pub fn move_item( &mut self, old_uri: &str, new_uri: Option<&str>, ) -> Result<(), Error>
pub fn remove_application(&mut self, uri: &str, name: &str) -> Result<(), Error>
pub fn remove_group(&mut self, uri: &str, group: &str) -> Result<(), Error>
pub fn remove_item(&mut self, uri: &str) -> Result<(), Error>
pub fn set_added(&mut self, uri: &str, added: time_t)
👎Deprecated:
Since 2.66
pub fn set_added_date_time(&mut self, uri: &str, added: &DateTime)
Available on crate feature
v2_66 only.pub fn set_app_info( &mut self, uri: &str, name: &str, exec: &str, count: i32, stamp: time_t, ) -> Result<(), Error>
👎Deprecated:
Since 2.66
pub fn set_application_info( &mut self, uri: &str, name: &str, exec: &str, count: i32, stamp: Option<&DateTime>, ) -> Result<(), Error>
Available on crate feature
v2_66 only.pub fn set_description(&mut self, uri: Option<&str>, description: &str)
pub fn set_groups(&mut self, uri: &str, groups: &[&str])
pub fn set_icon(&mut self, uri: &str, href: Option<&str>, mime_type: &str)
pub fn set_is_private(&mut self, uri: &str, is_private: bool)
pub fn set_mime_type(&mut self, uri: &str, mime_type: &str)
pub fn set_modified(&mut self, uri: &str, modified: time_t)
👎Deprecated:
Since 2.66
pub fn set_modified_date_time(&mut self, uri: &str, modified: &DateTime)
Available on crate feature
v2_66 only.pub fn set_title(&mut self, uri: Option<&str>, title: &str)
pub fn set_visited(&mut self, uri: &str, visited: time_t)
👎Deprecated:
Since 2.66
pub fn set_visited_date_time(&mut self, uri: &str, visited: &DateTime)
Available on crate feature
v2_66 only.pub fn to_data(&self) -> Result<Vec<u8>, Error>
pub fn to_file(&self, filename: impl AsRef<Path>) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for BookmarkFile
impl Clone for BookmarkFile
Source§impl Debug for BookmarkFile
impl Debug for BookmarkFile
Source§impl Default for BookmarkFile
impl Default for BookmarkFile
Source§impl From<BookmarkFile> for Value
impl From<BookmarkFile> for Value
Source§fn from(o: BookmarkFile) -> Self
fn from(o: BookmarkFile) -> Self
Converts to this type from the input type.
Source§impl HasParamSpec for BookmarkFile
impl HasParamSpec for BookmarkFile
type ParamSpec = ParamSpecBoxed
Source§type SetValue = BookmarkFile
type SetValue = BookmarkFile
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str) -> ParamSpecBoxedBuilder<'_, BookmarkFile>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for BookmarkFile
impl Hash for BookmarkFile
Source§impl Ord for BookmarkFile
impl Ord for BookmarkFile
Source§fn cmp(&self, other: &BookmarkFile) -> Ordering
fn cmp(&self, other: &BookmarkFile) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BookmarkFile
impl PartialEq for BookmarkFile
Source§impl PartialOrd for BookmarkFile
impl PartialOrd for BookmarkFile
Source§impl StaticType for BookmarkFile
impl StaticType for BookmarkFile
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for BookmarkFile
impl StructuralPartialEq for BookmarkFile
Auto Trait Implementations§
impl Freeze for BookmarkFile
impl RefUnwindSafe for BookmarkFile
impl !Send for BookmarkFile
impl !Sync for BookmarkFile
impl Unpin for BookmarkFile
impl UnsafeUnpin for BookmarkFile
impl UnwindSafe for BookmarkFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.