pub struct FileInfo(_, _);Implementations
sourceimpl 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
sourceimpl Ord for FileInfo
impl Ord for FileInfo
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: ObjectType> PartialOrd<T> for FileInfo
impl<T: ObjectType> PartialOrd<T> for FileInfo
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for FileInfo
impl StaticType for FileInfo
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for FileInfo
Auto Trait Implementations
impl RefUnwindSafe for FileInfo
impl !Send for FileInfo
impl !Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
sourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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 moresourceunsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T unconditionally. Read moresourceunsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T unconditionally. Read moresourceimpl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
sourcefn 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.