pub trait FileImplExt: FileImpl {
Show 59 methods
// Provided methods
fn parent_dup(&self) -> File { ... }
fn parent_hash(&self) -> u32 { ... }
fn parent_equal(&self, file2: &File) -> bool { ... }
fn parent_is_native(&self) -> bool { ... }
fn parent_has_uri_scheme(&self, uri_scheme: &str) -> bool { ... }
fn parent_uri_scheme(&self) -> Option<String> { ... }
fn parent_basename(&self) -> Option<PathBuf> { ... }
fn parent_path(&self) -> Option<PathBuf> { ... }
fn parent_uri(&self) -> String { ... }
fn parent_parse_name(&self) -> String { ... }
fn parent_parent(&self) -> Option<File> { ... }
fn parent_has_prefix(&self, prefix: &File) -> bool { ... }
fn parent_relative_path(&self, descendant: &File) -> Option<PathBuf> { ... }
fn parent_resolve_relative_path(
&self,
relative_path: impl AsRef<Path>,
) -> File { ... }
fn parent_child_for_display_name(
&self,
display_name: &str,
) -> Result<File, Error> { ... }
fn parent_enumerate_children(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&Cancellable>,
) -> Result<FileEnumerator, Error> { ... }
fn parent_query_info(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&Cancellable>,
) -> Result<FileInfo, Error> { ... }
fn parent_query_filesystem_info(
&self,
attributes: &str,
cancellable: Option<&Cancellable>,
) -> Result<FileInfo, Error> { ... }
fn parent_find_enclosing_mount(
&self,
cancellable: Option<&Cancellable>,
) -> Result<Mount, Error> { ... }
fn parent_set_display_name(
&self,
display_name: &str,
cancellable: Option<&Cancellable>,
) -> Result<File, Error> { ... }
fn parent_query_settable_attributes(
&self,
cancellable: Option<&Cancellable>,
) -> Result<FileAttributeInfoList, Error> { ... }
fn parent_query_writable_namespaces(
&self,
cancellable: Option<&Cancellable>,
) -> Result<FileAttributeInfoList, Error> { ... }
fn parent_set_attribute<'a>(
&self,
attribute: &str,
value: impl Into<FileAttributeValue<'a>>,
flags: FileQueryInfoFlags,
cancellable: Option<&Cancellable>,
) -> Result<(), Error> { ... }
fn parent_set_attributes_from_info(
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
cancellable: Option<&Cancellable>,
) -> Result<(), Error> { ... }
fn parent_read_fn(
&self,
cancellable: Option<&Cancellable>,
) -> Result<FileInputStream, Error> { ... }
fn parent_append_to(
&self,
flags: FileCreateFlags,
cancellable: Option<&Cancellable>,
) -> Result<FileOutputStream, Error> { ... }
fn parent_create(
&self,
flags: FileCreateFlags,
cancellable: Option<&Cancellable>,
) -> Result<FileOutputStream, Error> { ... }
fn parent_replace(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&Cancellable>,
) -> Result<FileOutputStream, Error> { ... }
fn parent_delete(
&self,
cancellable: Option<&Cancellable>,
) -> Result<(), Error> { ... }
fn parent_trash(
&self,
cancellable: Option<&Cancellable>,
) -> Result<(), Error> { ... }
fn parent_make_directory(
&self,
cancellable: Option<&Cancellable>,
) -> Result<(), Error> { ... }
fn parent_make_symbolic_link(
&self,
symlink_value: impl AsRef<Path>,
cancellable: Option<&Cancellable>,
) -> Result<(), Error> { ... }
fn parent_copy(
source: &File,
destination: &File,
flags: FileCopyFlags,
cancellable: Option<&Cancellable>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>,
) -> Result<(), Error> { ... }
fn parent_move(
source: &File,
destination: &File,
flags: FileCopyFlags,
cancellable: Option<&Cancellable>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>,
) -> Result<(), Error> { ... }
fn parent_mount_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&MountOperation>,
cancellable: Option<&Cancellable>,
callback: Option<P>,
) { ... }
fn parent_mount_mountable_finish(
&self,
res: &AsyncResult,
) -> Result<File, Error> { ... }
fn parent_unmount_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>(
&self,
flags: MountUnmountFlags,
cancellable: Option<&Cancellable>,
callback: Option<P>,
) { ... }
fn parent_unmount_mountable_finish(
&self,
res: &AsyncResult,
) -> Result<(), Error> { ... }
fn parent_eject_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>(
&self,
flags: MountUnmountFlags,
cancellable: Option<&Cancellable>,
callback: Option<P>,
) { ... }
fn parent_eject_mountable_finish(
&self,
res: &AsyncResult,
) -> Result<(), Error> { ... }
fn parent_mount_enclosing_volume<P: FnOnce(&Self::Type, &AsyncResult) + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&MountOperation>,
cancellable: Option<&Cancellable>,
callback: Option<P>,
) { ... }
fn parent_mount_enclosing_volume_finish(
&self,
res: &AsyncResult,
) -> Result<(), Error> { ... }
fn parent_monitor_dir(
&self,
flags: FileMonitorFlags,
cancellable: Option<&Cancellable>,
) -> Result<FileMonitor, Error> { ... }
fn parent_monitor_file(
&self,
flags: FileMonitorFlags,
cancellable: Option<&Cancellable>,
) -> Result<FileMonitor, Error> { ... }
fn parent_open_readwrite(
&self,
cancellable: Option<&Cancellable>,
) -> Result<FileIOStream, Error> { ... }
fn parent_create_readwrite(
&self,
flags: FileCreateFlags,
cancellable: Option<&Cancellable>,
) -> Result<FileIOStream, Error> { ... }
fn parent_replace_readwrite(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&Cancellable>,
) -> Result<FileIOStream, Error> { ... }
fn parent_start_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>(
&self,
flags: DriveStartFlags,
mount_operation: Option<&MountOperation>,
cancellable: Option<&Cancellable>,
callback: Option<P>,
) { ... }
fn parent_start_mountable_finish(
&self,
res: &AsyncResult,
) -> Result<(), Error> { ... }
fn parent_stop_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&MountOperation>,
cancellable: Option<&Cancellable>,
callback: Option<P>,
) { ... }
fn parent_stop_mountable_finish(
&self,
res: &AsyncResult,
) -> Result<(), Error> { ... }
fn parent_unmount_mountable_with_operation<P: FnOnce(&Self::Type, &AsyncResult) + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&MountOperation>,
cancellable: Option<&Cancellable>,
callback: Option<P>,
) { ... }
fn parent_unmount_mountable_with_operation_finish(
&self,
res: &AsyncResult,
) -> Result<(), Error> { ... }
fn parent_eject_mountable_with_operation<P: FnOnce(&Self::Type, &AsyncResult) + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&MountOperation>,
cancellable: Option<&Cancellable>,
callback: Option<P>,
) { ... }
fn parent_eject_mountable_with_operation_finish(
&self,
res: &AsyncResult,
) -> Result<(), Error> { ... }
fn parent_poll_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>(
&self,
cancellable: Option<&Cancellable>,
callback: Option<P>,
) { ... }
fn parent_poll_mountable_finish(
&self,
res: &AsyncResult,
) -> Result<(), Error> { ... }
fn parent_measure_disk_usage(
&self,
flags: FileMeasureFlags,
cancellable: Option<&Cancellable>,
progress_callback: Option<&mut dyn FnMut(bool, u64, u64, u64)>,
) -> Result<(u64, u64, u64), Error> { ... }
fn parent_query_exists(&self, cancellable: Option<&Cancellable>) -> bool { ... }
}Provided Methods§
fn parent_dup(&self) -> File
fn parent_hash(&self) -> u32
fn parent_equal(&self, file2: &File) -> bool
fn parent_is_native(&self) -> bool
fn parent_has_uri_scheme(&self, uri_scheme: &str) -> bool
fn parent_uri_scheme(&self) -> Option<String>
fn parent_basename(&self) -> Option<PathBuf>
fn parent_path(&self) -> Option<PathBuf>
fn parent_uri(&self) -> String
fn parent_parse_name(&self) -> String
fn parent_parent(&self) -> Option<File>
fn parent_has_prefix(&self, prefix: &File) -> bool
fn parent_relative_path(&self, descendant: &File) -> Option<PathBuf>
fn parent_resolve_relative_path(&self, relative_path: impl AsRef<Path>) -> File
fn parent_child_for_display_name( &self, display_name: &str, ) -> Result<File, Error>
fn parent_enumerate_children( &self, attributes: &str, flags: FileQueryInfoFlags, cancellable: Option<&Cancellable>, ) -> Result<FileEnumerator, Error>
fn parent_query_info( &self, attributes: &str, flags: FileQueryInfoFlags, cancellable: Option<&Cancellable>, ) -> Result<FileInfo, Error>
fn parent_query_filesystem_info( &self, attributes: &str, cancellable: Option<&Cancellable>, ) -> Result<FileInfo, Error>
fn parent_find_enclosing_mount( &self, cancellable: Option<&Cancellable>, ) -> Result<Mount, Error>
fn parent_set_display_name( &self, display_name: &str, cancellable: Option<&Cancellable>, ) -> Result<File, Error>
fn parent_query_settable_attributes( &self, cancellable: Option<&Cancellable>, ) -> Result<FileAttributeInfoList, Error>
fn parent_query_writable_namespaces( &self, cancellable: Option<&Cancellable>, ) -> Result<FileAttributeInfoList, Error>
fn parent_set_attribute<'a>( &self, attribute: &str, value: impl Into<FileAttributeValue<'a>>, flags: FileQueryInfoFlags, cancellable: Option<&Cancellable>, ) -> Result<(), Error>
fn parent_set_attributes_from_info( &self, info: &FileInfo, flags: FileQueryInfoFlags, cancellable: Option<&Cancellable>, ) -> Result<(), Error>
fn parent_read_fn( &self, cancellable: Option<&Cancellable>, ) -> Result<FileInputStream, Error>
fn parent_append_to( &self, flags: FileCreateFlags, cancellable: Option<&Cancellable>, ) -> Result<FileOutputStream, Error>
fn parent_create( &self, flags: FileCreateFlags, cancellable: Option<&Cancellable>, ) -> Result<FileOutputStream, Error>
fn parent_replace( &self, etag: Option<&str>, make_backup: bool, flags: FileCreateFlags, cancellable: Option<&Cancellable>, ) -> Result<FileOutputStream, Error>
fn parent_delete(&self, cancellable: Option<&Cancellable>) -> Result<(), Error>
fn parent_trash(&self, cancellable: Option<&Cancellable>) -> Result<(), Error>
fn parent_make_directory( &self, cancellable: Option<&Cancellable>, ) -> Result<(), Error>
fn parent_make_symbolic_link( &self, symlink_value: impl AsRef<Path>, cancellable: Option<&Cancellable>, ) -> Result<(), Error>
fn parent_copy( source: &File, destination: &File, flags: FileCopyFlags, cancellable: Option<&Cancellable>, progress_callback: Option<&mut dyn FnMut(i64, i64)>, ) -> Result<(), Error>
fn parent_move( source: &File, destination: &File, flags: FileCopyFlags, cancellable: Option<&Cancellable>, progress_callback: Option<&mut dyn FnMut(i64, i64)>, ) -> Result<(), Error>
fn parent_mount_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>( &self, flags: MountMountFlags, mount_operation: Option<&MountOperation>, cancellable: Option<&Cancellable>, callback: Option<P>, )
fn parent_mount_mountable_finish( &self, res: &AsyncResult, ) -> Result<File, Error>
fn parent_unmount_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>( &self, flags: MountUnmountFlags, cancellable: Option<&Cancellable>, callback: Option<P>, )
fn parent_unmount_mountable_finish( &self, res: &AsyncResult, ) -> Result<(), Error>
fn parent_eject_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>( &self, flags: MountUnmountFlags, cancellable: Option<&Cancellable>, callback: Option<P>, )
fn parent_eject_mountable_finish(&self, res: &AsyncResult) -> Result<(), Error>
fn parent_mount_enclosing_volume<P: FnOnce(&Self::Type, &AsyncResult) + 'static>( &self, flags: MountMountFlags, mount_operation: Option<&MountOperation>, cancellable: Option<&Cancellable>, callback: Option<P>, )
fn parent_mount_enclosing_volume_finish( &self, res: &AsyncResult, ) -> Result<(), Error>
fn parent_monitor_dir( &self, flags: FileMonitorFlags, cancellable: Option<&Cancellable>, ) -> Result<FileMonitor, Error>
fn parent_monitor_file( &self, flags: FileMonitorFlags, cancellable: Option<&Cancellable>, ) -> Result<FileMonitor, Error>
fn parent_open_readwrite( &self, cancellable: Option<&Cancellable>, ) -> Result<FileIOStream, Error>
fn parent_create_readwrite( &self, flags: FileCreateFlags, cancellable: Option<&Cancellable>, ) -> Result<FileIOStream, Error>
fn parent_replace_readwrite( &self, etag: Option<&str>, make_backup: bool, flags: FileCreateFlags, cancellable: Option<&Cancellable>, ) -> Result<FileIOStream, Error>
fn parent_start_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>( &self, flags: DriveStartFlags, mount_operation: Option<&MountOperation>, cancellable: Option<&Cancellable>, callback: Option<P>, )
fn parent_start_mountable_finish(&self, res: &AsyncResult) -> Result<(), Error>
fn parent_stop_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>( &self, flags: MountUnmountFlags, mount_operation: Option<&MountOperation>, cancellable: Option<&Cancellable>, callback: Option<P>, )
fn parent_stop_mountable_finish(&self, res: &AsyncResult) -> Result<(), Error>
fn parent_unmount_mountable_with_operation<P: FnOnce(&Self::Type, &AsyncResult) + 'static>( &self, flags: MountUnmountFlags, mount_operation: Option<&MountOperation>, cancellable: Option<&Cancellable>, callback: Option<P>, )
fn parent_unmount_mountable_with_operation_finish( &self, res: &AsyncResult, ) -> Result<(), Error>
fn parent_eject_mountable_with_operation<P: FnOnce(&Self::Type, &AsyncResult) + 'static>( &self, flags: MountUnmountFlags, mount_operation: Option<&MountOperation>, cancellable: Option<&Cancellable>, callback: Option<P>, )
fn parent_eject_mountable_with_operation_finish( &self, res: &AsyncResult, ) -> Result<(), Error>
fn parent_poll_mountable<P: FnOnce(&Self::Type, &AsyncResult) + 'static>( &self, cancellable: Option<&Cancellable>, callback: Option<P>, )
fn parent_poll_mountable_finish(&self, res: &AsyncResult) -> Result<(), Error>
fn parent_measure_disk_usage( &self, flags: FileMeasureFlags, cancellable: Option<&Cancellable>, progress_callback: Option<&mut dyn FnMut(bool, u64, u64, u64)>, ) -> Result<(u64, u64, u64), Error>
fn parent_query_exists(&self, cancellable: Option<&Cancellable>) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.