pub struct FileInfo { /* private fields */ }
Expand description
Stores information about a file system object referenced by a File
.
Functionality for manipulating basic metadata for files. GFileInfo
implements methods for getting information that all files should
contain, and allows for manipulation of extended attributes.
See the file attributes document for more information on how GIO handles file attributes.
To obtain a GFileInfo
for a File
, use
FileExt::query_info()
(or its async variant). To obtain a GFileInfo
for a file input or output stream, use FileInputStreamExt::query_info()
or FileOutputStreamExt::query_info()
(or their async variants).
To change the actual attributes of a file, you should then set the
attribute in the GFileInfo
and call FileExt::set_attributes_from_info()
or FileExt::set_attributes_async()
on a GFile
.
However, not all attributes can be changed in the file. For instance,
the actual size of a file cannot be changed via set_size()
.
You may call FileExt::query_settable_attributes()
and
FileExt::query_writable_namespaces()
to discover the settable attributes
of a particular file at runtime.
The direct accessors, such as name()
, are slightly more
optimized than the generic attribute accessors, such as
attribute_byte_string()
.This optimization will matter
only if calling the API in a tight loop.
It is an error to call these accessors without specifying their required file
attributes when creating the GFileInfo
. Use
has_attribute()
or list_attributes()
to check what attributes are specified for a GFileInfo
.
FileAttributeMatcher
allows for searching through a GFileInfo
for attributes.
§Implements
[trait@glib::ObjectExt
]
GLib type: GObject with reference counted clone semantics.
Implementations§
Source§impl FileInfo
impl FileInfo
Sourcepub fn modification_time(&self) -> SystemTime
👎Deprecated
pub fn modification_time(&self) -> SystemTime
Gets the modification time of the current @self and sets it in @result.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_TIME_MODIFIED
. If FILE_ATTRIBUTE_TIME_MODIFIED_USEC
is
provided it will be used too.
§Deprecated since 2.62
Use g_file_info_get_modification_date_time() instead, as #GTimeVal is deprecated due to the year 2038 problem.
§Returns
§result
a #GTimeVal.
Sourcepub fn set_modification_time(&self, mtime: SystemTime)
👎Deprecated
pub fn set_modification_time(&self, mtime: SystemTime)
Sets the FILE_ATTRIBUTE_TIME_MODIFIED
and
FILE_ATTRIBUTE_TIME_MODIFIED_USEC
attributes in the file info to the
given time value.
FILE_ATTRIBUTE_TIME_MODIFIED_NSEC
will be cleared.
§Deprecated since 2.62
Use g_file_info_set_modification_date_time() instead, as #GTimeVal is deprecated due to the year 2038 problem.
§mtime
a #GTimeVal.
Sourcepub fn attribute_stringv(&self, attribute: &str) -> StrV
pub fn attribute_stringv(&self, attribute: &str) -> StrV
Source§impl FileInfo
impl FileInfo
Sourcepub fn clear_status(&self)
pub fn clear_status(&self)
Clears the status information from @self.
Sourcepub fn copy_into(&self, dest_info: &FileInfo)
pub fn copy_into(&self, dest_info: &FileInfo)
First clears all of the [GFileAttribute][gio-GFileAttribute] of @dest_info, and then copies all of the file attributes from @self to @dest_info.
§dest_info
destination to copy attributes to.
Sourcepub fn access_date_time(&self) -> Option<DateTime>
Available on crate feature v2_70
only.
pub fn access_date_time(&self) -> Option<DateTime>
v2_70
only.Gets the access time of the current @self and returns it as a #GDateTime.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_TIME_ACCESS
. If FILE_ATTRIBUTE_TIME_ACCESS_USEC
is
provided, the resulting #GDateTime will additionally have microsecond
precision.
If nanosecond precision is needed, FILE_ATTRIBUTE_TIME_ACCESS_NSEC
must
be queried separately using g_file_info_get_attribute_uint32().
§Returns
access time, or None
if unknown
Sourcepub fn attribute_as_string(&self, attribute: &str) -> Option<GString>
pub fn attribute_as_string(&self, attribute: &str) -> Option<GString>
Gets the value of an attribute, formatted as a string. This escapes things as needed to make the string valid UTF-8.
§attribute
a file attribute key.
§Returns
a UTF-8 string associated with the given @attribute, or
None
if the attribute wasn’t set.
When you’re done with the string it must be freed with g_free().
Sourcepub fn attribute_byte_string(&self, attribute: &str) -> Option<GString>
pub fn attribute_byte_string(&self, attribute: &str) -> Option<GString>
Sourcepub fn attribute_file_path(&self, attribute: &str) -> Option<PathBuf>
Available on crate feature v2_78
only.
pub fn attribute_file_path(&self, attribute: &str) -> Option<PathBuf>
v2_78
only.Gets the value of a byte string attribute as a file path.
If the attribute does not contain a byte string, NULL
will be returned.
This function is meant to be used by language bindings that have specific handling for Unix paths.
§attribute
a file attribute key.
§Returns
the contents of the @attribute value as
a file path, or None
otherwise.
Sourcepub fn attribute_int32(&self, attribute: &str) -> i32
pub fn attribute_int32(&self, attribute: &str) -> i32
Sourcepub fn attribute_int64(&self, attribute: &str) -> i64
pub fn attribute_int64(&self, attribute: &str) -> i64
Sourcepub fn attribute_object(&self, attribute: &str) -> Option<Object>
pub fn attribute_object(&self, attribute: &str) -> Option<Object>
Sourcepub fn attribute_status(&self, attribute: &str) -> FileAttributeStatus
pub fn attribute_status(&self, attribute: &str) -> FileAttributeStatus
Gets the attribute status for an attribute key.
§attribute
a file attribute key
§Returns
a #GFileAttributeStatus for the given @attribute, or
FileAttributeStatus::Unset
if the key is invalid.
Sourcepub fn attribute_string(&self, attribute: &str) -> Option<GString>
pub fn attribute_string(&self, attribute: &str) -> Option<GString>
Sourcepub fn attribute_type(&self, attribute: &str) -> FileAttributeType
pub fn attribute_type(&self, attribute: &str) -> FileAttributeType
Gets the attribute type for an attribute key.
§attribute
a file attribute key.
§Returns
a #GFileAttributeType for the given @attribute, or
FileAttributeType::Invalid
if the key is not set.
Sourcepub fn attribute_uint32(&self, attribute: &str) -> u32
pub fn attribute_uint32(&self, attribute: &str) -> u32
Sourcepub fn attribute_uint64(&self, attribute: &str) -> u64
pub fn attribute_uint64(&self, attribute: &str) -> u64
Sourcepub fn content_type(&self) -> Option<GString>
pub fn content_type(&self) -> Option<GString>
Gets the file’s content type.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE
.
§Returns
a string containing the file’s content type,
or None
if unknown.
Sourcepub fn creation_date_time(&self) -> Option<DateTime>
Available on crate feature v2_70
only.
pub fn creation_date_time(&self) -> Option<DateTime>
v2_70
only.Gets the creation time of the current @self and returns it as a #GDateTime.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_TIME_CREATED
. If FILE_ATTRIBUTE_TIME_CREATED_USEC
is
provided, the resulting #GDateTime will additionally have microsecond
precision.
If nanosecond precision is needed, FILE_ATTRIBUTE_TIME_CREATED_NSEC
must
be queried separately using g_file_info_get_attribute_uint32().
§Returns
creation time, or None
if unknown
Sourcepub fn deletion_date(&self) -> Option<DateTime>
pub fn deletion_date(&self) -> Option<DateTime>
Returns the #GDateTime representing the deletion date of the file, as
available in FILE_ATTRIBUTE_TRASH_DELETION_DATE
. If the
FILE_ATTRIBUTE_TRASH_DELETION_DATE
attribute is unset, None
is returned.
§Returns
a #GDateTime, or None
.
Sourcepub fn display_name(&self) -> GString
pub fn display_name(&self) -> GString
Gets a display name for a file. This is guaranteed to always be set.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME
.
§Returns
a string containing the display name.
Sourcepub fn edit_name(&self) -> GString
pub fn edit_name(&self) -> GString
Gets the edit name for a file.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_EDIT_NAME
.
§Returns
a string containing the edit name.
Sourcepub fn etag(&self) -> Option<GString>
pub fn etag(&self) -> Option<GString>
Gets the entity tag for a given
#GFileInfo. See FILE_ATTRIBUTE_ETAG_VALUE
.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_ETAG_VALUE
.
§Returns
a string containing the value of the “etag:value” attribute.
Sourcepub fn file_type(&self) -> FileType
pub fn file_type(&self) -> FileType
Gets a file’s type (whether it is a regular file, symlink, etc). This is different from the file’s content type, see g_file_info_get_content_type().
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_TYPE
.
§Returns
a #GFileType for the given file.
Sourcepub fn icon(&self) -> Option<Icon>
pub fn icon(&self) -> Option<Icon>
Gets the icon for a file.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_ICON
.
§Returns
#GIcon for the given @self.
Sourcepub fn is_backup(&self) -> bool
pub fn is_backup(&self) -> bool
Checks if a file is a backup file.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_IS_BACKUP
.
§Returns
Checks if a file is hidden.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_IS_HIDDEN
.
§Returns
Sourcepub fn is_symlink(&self) -> bool
pub fn is_symlink(&self) -> bool
Checks if a file is a symlink.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_IS_SYMLINK
.
§Returns
true
if the given @self is a symlink.
Sourcepub fn modification_date_time(&self) -> Option<DateTime>
Available on crate feature v2_62
only.
pub fn modification_date_time(&self) -> Option<DateTime>
v2_62
only.Gets the modification time of the current @self and returns it as a #GDateTime.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_TIME_MODIFIED
. If FILE_ATTRIBUTE_TIME_MODIFIED_USEC
is
provided, the resulting #GDateTime will additionally have microsecond
precision.
If nanosecond precision is needed, FILE_ATTRIBUTE_TIME_MODIFIED_NSEC
must
be queried separately using g_file_info_get_attribute_uint32().
§Returns
modification time, or None
if unknown
Sourcepub fn name(&self) -> PathBuf
pub fn name(&self) -> PathBuf
Gets the name for a file. This is guaranteed to always be set.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_NAME
.
§Returns
a string containing the file name.
Sourcepub fn size(&self) -> i64
pub fn size(&self) -> i64
Gets the file’s size (in bytes). The size is retrieved through the value of
the FILE_ATTRIBUTE_STANDARD_SIZE
attribute and is converted
from #guint64 to #goffset before returning the result.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_SIZE
.
§Returns
a #goffset containing the file’s size (in bytes).
Sourcepub fn sort_order(&self) -> i32
pub fn sort_order(&self) -> i32
Gets the value of the sort_order attribute from the #GFileInfo.
See FILE_ATTRIBUTE_STANDARD_SORT_ORDER
.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_SORT_ORDER
.
§Returns
a #gint32 containing the value of the “standard::sort_order” attribute.
Sourcepub fn symbolic_icon(&self) -> Option<Icon>
pub fn symbolic_icon(&self) -> Option<Icon>
Gets the symbolic icon for a file.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON
.
§Returns
#GIcon for the given @self.
Sourcepub fn symlink_target(&self) -> Option<PathBuf>
pub fn symlink_target(&self) -> Option<PathBuf>
Gets the symlink target for a given #GFileInfo.
It is an error to call this if the #GFileInfo does not contain
FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET
.
§Returns
a string containing the symlink target.
Sourcepub fn has_attribute(&self, attribute: &str) -> bool
pub fn has_attribute(&self, attribute: &str) -> bool
Sourcepub fn has_namespace(&self, name_space: &str) -> bool
pub fn has_namespace(&self, name_space: &str) -> bool
Sourcepub fn remove_attribute(&self, attribute: &str)
pub fn remove_attribute(&self, attribute: &str)
Sourcepub fn set_access_date_time(&self, atime: &DateTime)
Available on crate feature v2_70
only.
pub fn set_access_date_time(&self, atime: &DateTime)
v2_70
only.Sets the FILE_ATTRIBUTE_TIME_ACCESS
and
FILE_ATTRIBUTE_TIME_ACCESS_USEC
attributes in the file info to the
given date/time value.
FILE_ATTRIBUTE_TIME_ACCESS_NSEC
will be cleared.
§atime
a #GDateTime.
Sourcepub fn set_attribute_boolean(&self, attribute: &str, attr_value: bool)
pub fn set_attribute_boolean(&self, attribute: &str, attr_value: bool)
Sourcepub fn set_attribute_byte_string(&self, attribute: &str, attr_value: &str)
pub fn set_attribute_byte_string(&self, attribute: &str, attr_value: &str)
Sourcepub fn set_attribute_file_path(
&self,
attribute: &str,
attr_value: impl AsRef<Path>,
)
Available on crate feature v2_78
only.
pub fn set_attribute_file_path( &self, attribute: &str, attr_value: impl AsRef<Path>, )
v2_78
only.Sourcepub fn set_attribute_int32(&self, attribute: &str, attr_value: i32)
pub fn set_attribute_int32(&self, attribute: &str, attr_value: i32)
Sourcepub fn set_attribute_int64(&self, attribute: &str, attr_value: i64)
pub fn set_attribute_int64(&self, attribute: &str, attr_value: i64)
Sourcepub fn set_attribute_mask(&self, mask: &FileAttributeMatcher)
pub fn set_attribute_mask(&self, mask: &FileAttributeMatcher)
Sourcepub fn set_attribute_object(
&self,
attribute: &str,
attr_value: &impl IsA<Object>,
)
pub fn set_attribute_object( &self, attribute: &str, attr_value: &impl IsA<Object>, )
Sourcepub fn set_attribute_status(
&self,
attribute: &str,
status: FileAttributeStatus,
) -> bool
pub fn set_attribute_status( &self, attribute: &str, status: FileAttributeStatus, ) -> bool
Sets the attribute status for an attribute key. This is only needed by external code that implement g_file_set_attributes_from_info() or similar functions.
The attribute must exist in @self for this to work. Otherwise false
is returned and @self is unchanged.
§attribute
a file attribute key
§status
a #GFileAttributeStatus
§Returns
true
if the status was changed, false
if the key was not set.
Sourcepub fn set_attribute_string(&self, attribute: &str, attr_value: &str)
pub fn set_attribute_string(&self, attribute: &str, attr_value: &str)
Sourcepub fn set_attribute_uint32(&self, attribute: &str, attr_value: u32)
pub fn set_attribute_uint32(&self, attribute: &str, attr_value: u32)
Sourcepub fn set_attribute_uint64(&self, attribute: &str, attr_value: u64)
pub fn set_attribute_uint64(&self, attribute: &str, attr_value: u64)
Sourcepub fn set_content_type(&self, content_type: &str)
pub fn set_content_type(&self, content_type: &str)
Sets the content type attribute for a given #GFileInfo.
See FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE
.
§content_type
a content type. See [GContentType][gio-GContentType]
Sourcepub fn set_creation_date_time(&self, creation_time: &DateTime)
Available on crate feature v2_70
only.
pub fn set_creation_date_time(&self, creation_time: &DateTime)
v2_70
only.Sets the FILE_ATTRIBUTE_TIME_CREATED
and
FILE_ATTRIBUTE_TIME_CREATED_USEC
attributes in the file info to the
given date/time value.
FILE_ATTRIBUTE_TIME_CREATED_NSEC
will be cleared.
§creation_time
a #GDateTime.
Sourcepub fn set_display_name(&self, display_name: &str)
pub fn set_display_name(&self, display_name: &str)
Sets the display name for the current #GFileInfo.
See FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME
.
§display_name
a string containing a display name.
Sourcepub fn set_edit_name(&self, edit_name: &str)
pub fn set_edit_name(&self, edit_name: &str)
Sets the edit name for the current file.
See FILE_ATTRIBUTE_STANDARD_EDIT_NAME
.
§edit_name
a string containing an edit name.
Sourcepub fn set_file_type(&self, type_: FileType)
pub fn set_file_type(&self, type_: FileType)
Sets the file type in a #GFileInfo to @type_.
See FILE_ATTRIBUTE_STANDARD_TYPE
.
§type_
a #GFileType.
Sets the “is_hidden” attribute in a #GFileInfo according to @is_hidden.
See FILE_ATTRIBUTE_STANDARD_IS_HIDDEN
.
§is_hidden
a #gboolean.
Sourcepub fn set_is_symlink(&self, is_symlink: bool)
pub fn set_is_symlink(&self, is_symlink: bool)
Sets the “is_symlink” attribute in a #GFileInfo according to @is_symlink.
See FILE_ATTRIBUTE_STANDARD_IS_SYMLINK
.
§is_symlink
a #gboolean.
Sourcepub fn set_modification_date_time(&self, mtime: &DateTime)
Available on crate feature v2_62
only.
pub fn set_modification_date_time(&self, mtime: &DateTime)
v2_62
only.Sets the FILE_ATTRIBUTE_TIME_MODIFIED
and
FILE_ATTRIBUTE_TIME_MODIFIED_USEC
attributes in the file info to the
given date/time value.
FILE_ATTRIBUTE_TIME_MODIFIED_NSEC
will be cleared.
§mtime
a #GDateTime.
Sourcepub fn set_name(&self, name: impl AsRef<Path>)
pub fn set_name(&self, name: impl AsRef<Path>)
Sets the name attribute for the current #GFileInfo.
See FILE_ATTRIBUTE_STANDARD_NAME
.
§name
a string containing a name.
Sourcepub fn set_size(&self, size: i64)
pub fn set_size(&self, size: i64)
Sets the FILE_ATTRIBUTE_STANDARD_SIZE
attribute in the file info
to the given size.
§size
a #goffset containing the file’s size.
Sourcepub fn set_sort_order(&self, sort_order: i32)
pub fn set_sort_order(&self, sort_order: i32)
Sets the sort order attribute in the file info structure. See
FILE_ATTRIBUTE_STANDARD_SORT_ORDER
.
§sort_order
a sort order integer.
Sourcepub fn set_symbolic_icon(&self, icon: &impl IsA<Icon>)
pub fn set_symbolic_icon(&self, icon: &impl IsA<Icon>)
Sets the symbolic icon for a given #GFileInfo.
See FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON
.
§icon
a #GIcon.
Sourcepub fn set_symlink_target(&self, symlink_target: impl AsRef<Path>)
pub fn set_symlink_target(&self, symlink_target: impl AsRef<Path>)
Sets the FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET
attribute in the file info
to the given symlink target.
§symlink_target
a static string containing a path to a symlink target.
Sourcepub fn unset_attribute_mask(&self)
pub fn unset_attribute_mask(&self)
Unsets a mask set by g_file_info_set_attribute_mask(), if one is set.
Trait Implementations§
Source§impl HasParamSpec for FileInfo
impl HasParamSpec for FileInfo
Source§impl Ord for FileInfo
impl Ord for FileInfo
Source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Comparison for two GObjects.
Compares the memory addresses of the provided objects.
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<OT: ObjectType> PartialEq<OT> for FileInfo
impl<OT: ObjectType> PartialEq<OT> for FileInfo
Source§impl<OT: ObjectType> PartialOrd<OT> for FileInfo
impl<OT: ObjectType> PartialOrd<OT> for FileInfo
Source§impl StaticType for FileInfo
impl StaticType for FileInfo
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for FileInfo
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl !Send for FileInfo
impl !Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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
Source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast
will do many checks at compile-time already. downcast
will
perform the same checks at runtime as dynamic_cast
, but will also ensure some amount of
compile-time safety. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>,
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>,
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>,
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>,
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>,
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>,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)
Source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
true
if the object is an instance of (can be cast to) T
.Source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
ObjectClass
of the object. Read moreSource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
T
. Read moreSource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
T
of the object. Read moreSource§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
Source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
Source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
Source§fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
property_name
of the object and cast it to the type V. Read moreSource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
property_name
of the object. Read moreSource§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
property_name
of this object. Read moreSource§fn find_property(&self, property_name: &str) -> Option<ParamSpec>
fn find_property(&self, property_name: &str) -> Option<ParamSpec>
ParamSpec
of the property property_name
of this object.Source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec
of the properties of this object.Source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
Source§unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
key
. Read moreSource§unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moreSource§unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
key
. Read moreSource§unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
key
. Read moreSource§unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moreSource§unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
key
. Read moreSource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
Source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
Source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
Source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
Source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name
on this object. Read moreSource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
signal_id
on this object. Read moreSource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name
on this object. Read moreSource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
signal_id
on this object. Read moreSource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name
on this object. Read moreSource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
signal_id
on this object. Read moreSource§fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure,
) -> SignalHandlerId
fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure, ) -> SignalHandlerId
signal_name
on this object. Read moreSource§fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure,
) -> SignalHandlerId
fn connect_closure_id( &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure, ) -> SignalHandlerId
signal_id
on this object. Read moreSource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
closure
to the lifetime of the object. When
the object’s reference count drops to zero, the closure will be
invalidated. An invalidated closure will ignore any calls to
invoke_with_values
, or
invoke
when using Rust closures.Source§fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
Source§fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
Self::emit
but takes Value
for the arguments.Source§fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
Source§fn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value],
) -> Option<Value>
fn emit_by_name_with_values( &self, signal_name: &str, args: &[Value], ) -> Option<Value>
Source§fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
Source§fn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value],
) -> Option<Value>
fn emit_by_name_with_details_and_values( &self, signal_name: &str, details: Quark, args: &[Value], ) -> Option<Value>
Source§fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
Source§fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value],
) -> Option<Value>
fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value], ) -> Option<Value>
Source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
Source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moreSource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moreSource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F,
) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F, ) -> SignalHandlerId
notify
signal of the object. Read more