pub struct RepoFile(_);
Implementations
sourceimpl RepoFile
impl RepoFile
pub fn ensure_resolved(&self) -> Result<(), Error>
pub fn checksum(&self) -> Option<GString>
pub fn repo(&self) -> Option<Repo>
pub fn root(&self) -> Option<RepoFile>
pub fn xattrs<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<Variant, Error>
pub fn tree_find_child(&self, name: &str) -> (i32, bool, Variant)
pub fn tree_get_contents(&self) -> Option<Variant>
pub fn tree_get_contents_checksum(&self) -> Option<GString>
pub fn tree_get_metadata(&self) -> Option<Variant>
pub fn tree_get_metadata_checksum(&self) -> Option<GString>
pub fn tree_query_child<P: IsA<Cancellable>>(
&self,
n: i32,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<FileInfo, Error>
pub fn tree_set_metadata(&self, checksum: &str, metadata: &Variant)
Trait Implementations
sourceimpl Ord for RepoFile
impl Ord for RepoFile
sourceimpl ParentClassIs for RepoFile
impl ParentClassIs for RepoFile
sourceimpl<T: ObjectType> PartialEq<T> for RepoFile
impl<T: ObjectType> PartialEq<T> for RepoFile
sourceimpl<T: ObjectType> PartialOrd<T> for RepoFile
impl<T: ObjectType> PartialOrd<T> for RepoFile
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl StaticType for RepoFile
impl StaticType for RepoFile
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Eq for RepoFile
impl IsA<File> for RepoFile
impl StructuralEq for RepoFile
Auto Trait Implementations
impl RefUnwindSafe for RepoFile
impl !Send for RepoFile
impl !Sync for RepoFile
impl Unpin for RepoFile
impl UnwindSafe for RepoFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 T where
T: ObjectType,
impl<T> Cast for T where
T: ObjectType,
sourcefn upcast<T>(self) -> T where
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> T where
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface T
. Read more
sourcefn upcast_ref<T>(&self) -> &T where
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &T where
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface T
. Read more
sourcefn 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 more
sourcefn 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 more
sourcefn 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 more
sourcefn 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 more
sourceunsafe fn unsafe_cast<T>(self) -> T where
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> T where
T: ObjectType,
Casts to T
unconditionally. Read more
sourceunsafe fn unsafe_cast_ref<T>(&self) -> &T where
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &T where
T: ObjectType,
Casts to &T
unconditionally. Read more
sourceimpl<O> FileExt for O where
O: IsA<File>,
impl<O> FileExt for O where
O: IsA<File>,
fn append_to<P>(
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error> where
P: IsA<Cancellable>,
fn append_to_async<P, Q>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<FileOutputStream, Error>) + Send,
fn append_to_async_future(
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<FileOutputStream, Error>> + 'static, Global>>
fn copy<P, Q>(
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>
) -> Result<(), Error> where
P: IsA<File>,
Q: IsA<Cancellable>,
fn copy_attributes<P, Q>(
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>
) -> Result<(), Error> where
P: IsA<File>,
Q: IsA<Cancellable>,
fn create<P>(
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error> where
P: IsA<Cancellable>,
fn create_async<P, Q>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<FileOutputStream, Error>) + Send,
fn create_async_future(
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<FileOutputStream, Error>> + 'static, Global>>
fn create_readwrite<P>(
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileIOStream, Error> where
P: IsA<Cancellable>,
fn create_readwrite_async<P, Q>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<FileIOStream, Error>) + Send,
fn create_readwrite_async_future(
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<FileIOStream, Error>> + 'static, Global>>
fn delete<P>(&self, cancellable: Option<&P>) -> Result<(), Error> where
P: IsA<Cancellable>,
fn delete_async<P, Q>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
fn delete_async_future(
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
fn dup(&self) -> File
fn eject_mountable_with_operation<P, Q, R>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
fn eject_mountable_with_operation_future<P>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
fn enumerate_children<P>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<FileEnumerator, Error> where
P: IsA<Cancellable>,
fn equal<P>(&self, file2: &P) -> bool where
P: IsA<File>,
fn find_enclosing_mount<P>(
&self,
cancellable: Option<&P>
) -> Result<Mount, Error> where
P: IsA<Cancellable>,
fn basename(&self) -> Option<PathBuf>
fn child<P>(&self, name: P) -> File where
P: AsRef<Path>,
fn child_for_display_name(&self, display_name: &str) -> Result<File, Error>
fn parent(&self) -> Option<File>
fn parse_name(&self) -> GString
fn path(&self) -> Option<PathBuf>
fn relative_path<P>(&self, descendant: &P) -> Option<PathBuf> where
P: IsA<File>,
fn uri(&self) -> GString
fn uri_scheme(&self) -> Option<GString>
fn has_parent<P>(&self, parent: Option<&P>) -> bool where
P: IsA<File>,
fn has_prefix<P>(&self, prefix: &P) -> bool where
P: IsA<File>,
fn has_uri_scheme(&self, uri_scheme: &str) -> bool
fn is_native(&self) -> bool
fn load_contents<P>(
&self,
cancellable: Option<&P>
) -> Result<(Vec<u8, Global>, Option<GString>), Error> where
P: IsA<Cancellable>,
fn load_contents_async<P, Q>(&self, cancellable: Option<&P>, callback: Q) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(Vec<u8, Global>, Option<GString>), Error>) + Send,
fn load_contents_async_future(
&self
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8, Global>, Option<GString>), Error>> + 'static, Global>>
fn make_directory<P>(&self, cancellable: Option<&P>) -> Result<(), Error> where
P: IsA<Cancellable>,
fn make_directory_async<P, Q>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
fn make_directory_async_future(
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
fn make_directory_with_parents<P>(
&self,
cancellable: Option<&P>
) -> Result<(), Error> where
P: IsA<Cancellable>,
fn make_symbolic_link<P, Q>(
&self,
symlink_value: P,
cancellable: Option<&Q>
) -> Result<(), Error> where
P: AsRef<Path>,
Q: IsA<Cancellable>,
fn measure_disk_usage<P>(
&self,
flags: FileMeasureFlags,
cancellable: Option<&P>,
progress_callback: Option<Box<dyn Fn(bool, u64, u64, u64) + 'static, Global>>
) -> Result<(u64, u64, u64), Error> where
P: IsA<Cancellable>,
fn monitor<P>(
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error> where
P: IsA<Cancellable>,
fn monitor_directory<P>(
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error> where
P: IsA<Cancellable>,
fn monitor_file<P>(
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error> where
P: IsA<Cancellable>,
fn mount_enclosing_volume<P, Q, R>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
fn mount_enclosing_volume_future<P>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
fn mount_mountable<P, Q, R>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<File, Error>) + Send,
fn mount_mountable_future<P>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<File, Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
fn move_<P, Q>(
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>
) -> Result<(), Error> where
P: IsA<File>,
Q: IsA<Cancellable>,
fn open_readwrite<P>(
&self,
cancellable: Option<&P>
) -> Result<FileIOStream, Error> where
P: IsA<Cancellable>,
fn open_readwrite_async<P, Q>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<FileIOStream, Error>) + Send,
fn open_readwrite_async_future(
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<FileIOStream, Error>> + 'static, Global>>
fn poll_mountable<P, Q>(&self, cancellable: Option<&P>, callback: Q) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
fn poll_mountable_future(
&self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
fn query_default_handler<P>(
&self,
cancellable: Option<&P>
) -> Result<AppInfo, Error> where
P: IsA<Cancellable>,
fn query_exists<P>(&self, cancellable: Option<&P>) -> bool where
P: IsA<Cancellable>,
fn query_file_type<P>(
&self,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> FileType where
P: IsA<Cancellable>,
fn query_filesystem_info<P>(
&self,
attributes: &str,
cancellable: Option<&P>
) -> Result<FileInfo, Error> where
P: IsA<Cancellable>,
fn query_filesystem_info_async<P, Q>(
&self,
attributes: &str,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<FileInfo, Error>) + Send,
fn query_filesystem_info_async_future(
&self,
attributes: &str,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<FileInfo, Error>> + 'static, Global>>
fn query_info<P>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<FileInfo, Error> where
P: IsA<Cancellable>,
fn query_info_async<P, Q>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<FileInfo, Error>) + Send,
fn query_info_async_future(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<FileInfo, Error>> + 'static, Global>>
fn read<P>(&self, cancellable: Option<&P>) -> Result<FileInputStream, Error> where
P: IsA<Cancellable>,
fn read_async<P, Q>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<FileInputStream, Error>) + Send,
fn read_async_future(
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<FileInputStream, Error>> + 'static, Global>>
fn replace<P>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error> where
P: IsA<Cancellable>,
fn replace_async<P, Q>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<FileOutputStream, Error>) + Send,
fn replace_async_future(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<FileOutputStream, Error>> + 'static, Global>>
fn replace_contents<P>(
&self,
contents: &[u8],
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<Option<GString>, Error> where
P: IsA<Cancellable>,
fn replace_readwrite<P>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileIOStream, Error> where
P: IsA<Cancellable>,
fn replace_readwrite_async<P, Q>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<FileIOStream, Error>) + Send,
fn replace_readwrite_async_future(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<FileIOStream, Error>> + 'static, Global>>
fn resolve_relative_path<P>(&self, relative_path: P) -> File where
P: AsRef<Path>,
fn set_attribute_byte_string<P>(
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error> where
P: IsA<Cancellable>,
fn set_attribute_int32<P>(
&self,
attribute: &str,
value: i32,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error> where
P: IsA<Cancellable>,
fn set_attribute_int64<P>(
&self,
attribute: &str,
value: i64,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error> where
P: IsA<Cancellable>,
fn set_attribute_string<P>(
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error> where
P: IsA<Cancellable>,
fn set_attribute_uint32<P>(
&self,
attribute: &str,
value: u32,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error> where
P: IsA<Cancellable>,
fn set_attribute_uint64<P>(
&self,
attribute: &str,
value: u64,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error> where
P: IsA<Cancellable>,
fn set_attributes_async<P, Q>(
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<FileInfo, Error>) + Send,
fn set_attributes_async_future(
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<FileInfo, Error>> + 'static, Global>>
fn set_attributes_from_info<P>(
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error> where
P: IsA<Cancellable>,
fn set_display_name<P>(
&self,
display_name: &str,
cancellable: Option<&P>
) -> Result<File, Error> where
P: IsA<Cancellable>,
fn set_display_name_async<P, Q>(
&self,
display_name: &str,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<File, Error>) + Send,
fn set_display_name_async_future(
&self,
display_name: &str,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<File, Error>> + 'static, Global>>
fn start_mountable<P, Q, R>(
&self,
flags: DriveStartFlags,
start_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
fn start_mountable_future<P>(
&self,
flags: DriveStartFlags,
start_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
fn stop_mountable<P, Q, R>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
fn stop_mountable_future<P>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
fn supports_thread_contexts(&self) -> bool
fn trash<P>(&self, cancellable: Option<&P>) -> Result<(), Error> where
P: IsA<Cancellable>,
fn trash_async<P, Q>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
fn trash_async_future(
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
fn unmount_mountable_with_operation<P, Q, R>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
) where
P: IsA<MountOperation>,
Q: IsA<Cancellable>,
R: 'static + FnOnce(Result<(), Error>) + Send,
fn unmount_mountable_with_operation_future<P>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>> where
P: 'static + IsA<MountOperation> + Clone,
sourceimpl<O> FileExtManual for O where
O: IsA<File>,
impl<O> FileExtManual for O where
O: IsA<File>,
fn replace_contents_async<B, R, C>(
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&C>,
callback: R
) where
B: 'static + AsRef<[u8]> + Send,
R: 'static + FnOnce(Result<(B, GString), (B, Error)>) + Send,
C: IsA<Cancellable>,
fn replace_contents_async_future<B>(
&self,
contents: B,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags
) -> Pin<Box<dyn Future<Output = Result<(B, GString), (B, Error)>> + 'static, Global>> where
B: 'static + AsRef<[u8]> + Send,
fn enumerate_children_async<P, Q>(
&self,
attributes: &'static str,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<FileEnumerator, Error>) + Send,
fn enumerate_children_async_future(
&self,
attributes: &'static str,
flags: FileQueryInfoFlags,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<FileEnumerator, Error>> + 'static, Global>>
sourceimpl<T> ObjectExt for T where
T: ObjectType,
impl<T> ObjectExt for T where
T: ObjectType,
sourcefn is<U>(&self) -> bool where
U: StaticType,
fn is<U>(&self) -> bool where
U: StaticType,
Returns true
if the object is an instance of (can be cast to) T
.
fn type_(&self) -> Type
fn object_class(&self) -> &Class<Object>
fn class(&self) -> &Class<T> where
T: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>> where
U: IsClass,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>> where
U: IsInterface,
fn set_property<'a, N, V>(
&self,
property_name: N,
value: V
) -> Result<(), BoolError> where
N: Into<&'a str>,
V: ToValue,
fn set_property_from_value<'a, N>(
&self,
property_name: N,
value: &Value
) -> Result<(), BoolError> where
N: Into<&'a str>,
fn set_properties(
&self,
property_values: &[(&str, &dyn ToValue)]
) -> Result<(), BoolError>
fn set_properties_from_value(
&self,
property_values: &[(&str, Value)]
) -> Result<(), BoolError>
fn property<'a, N>(&self, property_name: N) -> Result<Value, BoolError> where
N: Into<&'a str>,
fn has_property<'a, N>(&self, property_name: N, type_: Option<Type>) -> bool where
N: Into<&'a str>,
fn property_type<'a, N>(&self, property_name: N) -> Option<Type> where
N: Into<&'a str>,
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec> where
N: Into<&'a str>,
fn list_properties(&self) -> Vec<ParamSpec, Global>
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
sourceunsafe 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,
Safety Read more
sourceunsafe 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,
Safety Read more
sourceunsafe 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,
Safety Read more
sourceunsafe 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,
Safety Read more
fn block_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn stop_signal_emission(&self, signal_name: &str)
fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
N: Into<&'a str>,
F: 'static + Fn(&[Value]) -> Option<Value> + Send + Sync,
sourcefn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: 'static + Fn(&[Value]) -> Option<Value> + Send + Sync,
fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: 'static + Fn(&[Value]) -> Option<Value> + Send + Sync,
Same as connect
but takes a SignalId
instead of a signal name.
fn connect_local<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
N: Into<&'a str>,
F: 'static + Fn(&[Value]) -> Option<Value>,
sourcefn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: 'static + Fn(&[Value]) -> Option<Value>,
fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: 'static + Fn(&[Value]) -> Option<Value>,
Same as connect_local
but takes a SignalId
instead of a signal name.
unsafe fn connect_unsafe<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
N: Into<&'a str>,
F: Fn(&[Value]) -> Option<Value>,
sourceunsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
Same as connect_unsafe
but takes a SignalId
instead of a signal name.
sourcefn emit(
&self,
signal_id: SignalId,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError>
fn emit(
&self,
signal_id: SignalId,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError>
Emit signal by signal id.
sourcefn emit_with_values(
&self,
signal_id: SignalId,
args: &[Value]
) -> Result<Option<Value>, BoolError>
fn emit_with_values(
&self,
signal_id: SignalId,
args: &[Value]
) -> Result<Option<Value>, BoolError>
Same as emit
but takes Value
for the arguments.
sourcefn emit_by_name<'a, N>(
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
fn emit_by_name<'a, N>(
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
Emit signal by its name.
sourcefn emit_by_name_with_values<'a, N>(
&self,
signal_name: N,
args: &[Value]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
fn emit_by_name_with_values<'a, N>(
&self,
signal_name: N,
args: &[Value]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
Same as emit_by_name
but takes Value
for the arguments.
sourcefn emit_with_details(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError>
fn emit_with_details(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError>
Emit signal with details by signal id.
sourcefn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value]
) -> Result<Option<Value>, BoolError>
fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value]
) -> Result<Option<Value>, BoolError>
Same as emit_with_details
but takes Value
for the arguments.
fn disconnect(&self, handler_id: SignalHandlerId)
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId where
F: 'static + Fn(&T, &ParamSpec) + Send + Sync,
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId where
F: 'static + Fn(&T, &ParamSpec),
unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
fn notify<'a, N>(&self, property_name: N) where
N: Into<&'a str>,
fn notify_by_pspec(&self, pspec: &ParamSpec)
fn downgrade(&self) -> WeakRef<T>
fn bind_property<'a, O, N, M>(
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a> where
O: ObjectType,
N: Into<&'a str>,
M: Into<&'a str>,
fn ref_count(&self) -> u32
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.