pub struct FileInfo(/* private fields */);
Implementations§
Source§impl FileInfo
impl FileInfo
pub fn new() -> FileInfo
pub fn clear_status(&self)
pub fn copy_into(&self, dest_info: &FileInfo)
pub fn dup(&self) -> Option<FileInfo>
pub fn get_attribute_as_string(&self, attribute: &str) -> Option<GString>
pub fn get_attribute_boolean(&self, attribute: &str) -> bool
pub fn get_attribute_byte_string(&self, attribute: &str) -> Option<GString>
pub fn get_attribute_int32(&self, attribute: &str) -> i32
pub fn get_attribute_int64(&self, attribute: &str) -> i64
pub fn get_attribute_object(&self, attribute: &str) -> Option<Object>
pub fn get_attribute_status(&self, attribute: &str) -> FileAttributeStatus
pub fn get_attribute_string(&self, attribute: &str) -> Option<GString>
pub fn get_attribute_stringv(&self, attribute: &str) -> Vec<GString>
pub fn get_attribute_type(&self, attribute: &str) -> FileAttributeType
pub fn get_attribute_uint32(&self, attribute: &str) -> u32
pub fn get_attribute_uint64(&self, attribute: &str) -> u64
pub fn get_content_type(&self) -> Option<GString>
pub fn get_deletion_date(&self) -> Option<DateTime>
pub fn get_display_name(&self) -> Option<GString>
pub fn get_edit_name(&self) -> Option<GString>
pub fn get_etag(&self) -> Option<GString>
pub fn get_file_type(&self) -> FileType
pub fn get_icon(&self) -> Option<Icon>
pub fn get_is_backup(&self) -> bool
pub fn get_is_symlink(&self) -> bool
pub fn get_modification_time(&self) -> TimeVal
pub fn get_name(&self) -> Option<PathBuf>
pub fn get_size(&self) -> i64
pub fn get_sort_order(&self) -> i32
pub fn get_symbolic_icon(&self) -> Option<Icon>
pub fn get_symlink_target(&self) -> Option<GString>
pub fn has_attribute(&self, attribute: &str) -> bool
pub fn has_namespace(&self, name_space: &str) -> bool
pub fn list_attributes(&self, name_space: Option<&str>) -> Vec<GString>
pub fn remove_attribute(&self, attribute: &str)
pub fn set_attribute_boolean(&self, attribute: &str, attr_value: bool)
pub fn set_attribute_byte_string(&self, attribute: &str, attr_value: &str)
pub fn set_attribute_int32(&self, attribute: &str, attr_value: i32)
pub fn set_attribute_int64(&self, attribute: &str, attr_value: i64)
pub fn set_attribute_mask(&self, mask: &FileAttributeMatcher)
pub fn set_attribute_object<P: IsA<Object>>( &self, attribute: &str, attr_value: &P, )
pub fn set_attribute_status( &self, attribute: &str, status: FileAttributeStatus, ) -> bool
pub fn set_attribute_string(&self, attribute: &str, attr_value: &str)
pub fn set_attribute_stringv(&self, attribute: &str, attr_value: &[&str])
pub fn set_attribute_uint32(&self, attribute: &str, attr_value: u32)
pub fn set_attribute_uint64(&self, attribute: &str, attr_value: u64)
pub fn set_content_type(&self, content_type: &str)
pub fn set_display_name(&self, display_name: &str)
pub fn set_edit_name(&self, edit_name: &str)
pub fn set_file_type(&self, type_: FileType)
pub fn set_icon<P: IsA<Icon>>(&self, icon: &P)
pub fn set_is_symlink(&self, is_symlink: bool)
pub fn set_modification_time(&self, mtime: &mut TimeVal)
pub fn set_name<P: AsRef<Path>>(&self, name: P)
pub fn set_size(&self, size: i64)
pub fn set_sort_order(&self, sort_order: i32)
pub fn set_symbolic_icon<P: IsA<Icon>>(&self, icon: &P)
pub fn set_symlink_target(&self, symlink_target: &str)
pub fn unset_attribute_mask(&self)
Trait Implementations§
Source§impl Ord for FileInfo
impl Ord for FileInfo
Source§impl<T: ObjectType> PartialEq<T> for FileInfo
impl<T: ObjectType> PartialEq<T> for FileInfo
Source§impl<T: ObjectType> PartialOrd<T> for FileInfo
impl<T: ObjectType> PartialOrd<T> for FileInfo
Source§impl StaticType for FileInfo
impl StaticType for FileInfo
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
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
Mutably borrows from an owned value. Read more
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>,
Upcasts an object to a superclass or interface
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>,
Upcasts an object to a reference of its superclass or interface
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
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,
Tries to cast to an object of type
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§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
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,
Casts to
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moreSource§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 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 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 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 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> 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,
Returns
true
if the object is an instance of (can be cast to) T
.