[−][src]Trait gio::prelude::FileExt
Required methods
fn append_to<P: IsA<Cancellable>>(
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
fn append_to_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn append_to_async_future(
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileOutputStream, Error>> + 'static>>
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileOutputStream, Error>> + 'static>>
fn copy<P: IsA<File>, Q: IsA<Cancellable>>(
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>
) -> Result<(), Error>
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>
) -> Result<(), Error>
fn copy_attributes<P: IsA<File>, Q: IsA<Cancellable>>(
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>
) -> Result<(), Error>
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>
) -> Result<(), Error>
fn create<P: IsA<Cancellable>>(
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
fn create_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn create_async_future(
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileOutputStream, Error>> + 'static>>
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileOutputStream, Error>> + 'static>>
fn create_readwrite<P: IsA<Cancellable>>(
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
fn create_readwrite_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn create_readwrite_async_future(
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileIOStream, Error>> + 'static>>
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileIOStream, Error>> + 'static>>
fn delete<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn delete_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn delete_async_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn dup(&self) -> Option<File>
fn eject_mountable_with_operation<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn eject_mountable_with_operation_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn enumerate_children<P: IsA<Cancellable>>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<FileEnumerator, Error>
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<FileEnumerator, Error>
fn equal<P: IsA<File>>(&self, file2: &P) -> bool
fn find_enclosing_mount<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<Mount, Error>
&self,
cancellable: Option<&P>
) -> Result<Mount, Error>
fn get_basename(&self) -> Option<PathBuf>
fn get_child<P: AsRef<Path>>(&self, name: P) -> Option<File>
fn get_child_for_display_name(&self, display_name: &str) -> Result<File, Error>
fn get_parent(&self) -> Option<File>
fn get_parse_name(&self) -> Option<GString>
fn get_path(&self) -> Option<PathBuf>
fn get_relative_path<P: IsA<File>>(&self, descendant: &P) -> Option<PathBuf>
fn get_uri(&self) -> GString
fn get_uri_scheme(&self) -> GString
fn has_parent<P: IsA<File>>(&self, parent: Option<&P>) -> bool
fn has_prefix<P: IsA<File>>(&self, prefix: &P) -> bool
fn has_uri_scheme(&self, uri_scheme: &str) -> bool
fn is_native(&self) -> bool
fn load_contents<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(Vec<u8>, GString), Error>
&self,
cancellable: Option<&P>
) -> Result<(Vec<u8>, GString), Error>
fn load_contents_async<P: IsA<Cancellable>, Q: FnOnce(Result<(Vec<u8>, GString), Error>) + Send + 'static>(
&self,
cancellable: Option<&P>,
callback: Q
)
&self,
cancellable: Option<&P>,
callback: Q
)
fn load_contents_async_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<(Vec<u8>, GString), Error>> + 'static>>
&self
) -> Pin<Box_<dyn Future<Output = Result<(Vec<u8>, GString), Error>> + 'static>>
fn make_directory<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn make_directory_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn make_directory_async_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn make_directory_with_parents<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn make_symbolic_link<P: AsRef<Path>, Q: IsA<Cancellable>>(
&self,
symlink_value: P,
cancellable: Option<&Q>
) -> Result<(), Error>
&self,
symlink_value: P,
cancellable: Option<&Q>
) -> Result<(), Error>
fn measure_disk_usage<P: IsA<Cancellable>>(
&self,
flags: FileMeasureFlags,
cancellable: Option<&P>,
progress_callback: Option<Box_<dyn Fn(bool, u64, u64, u64) + 'static>>
) -> Result<(u64, u64, u64), Error>
&self,
flags: FileMeasureFlags,
cancellable: Option<&P>,
progress_callback: Option<Box_<dyn Fn(bool, u64, u64, u64) + 'static>>
) -> Result<(u64, u64, u64), Error>
fn monitor<P: IsA<Cancellable>>(
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
fn monitor_directory<P: IsA<Cancellable>>(
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
fn monitor_file<P: IsA<Cancellable>>(
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
fn mount_enclosing_volume<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn mount_enclosing_volume_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn mount_mountable<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<File, Error>) + Send + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn mount_mountable_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<File, Error>> + 'static>>
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<File, Error>> + 'static>>
fn move_<P: IsA<File>, Q: IsA<Cancellable>>(
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>
) -> Result<(), Error>
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>
) -> Result<(), Error>
fn open_readwrite<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
&self,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
fn open_readwrite_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn open_readwrite_async_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileIOStream, Error>> + 'static>>
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileIOStream, Error>> + 'static>>
fn poll_mountable<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
cancellable: Option<&P>,
callback: Q
)
&self,
cancellable: Option<&P>,
callback: Q
)
fn poll_mountable_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn query_default_handler<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<AppInfo, Error>
&self,
cancellable: Option<&P>
) -> Result<AppInfo, Error>
fn query_exists<P: IsA<Cancellable>>(&self, cancellable: Option<&P>) -> bool
fn query_file_type<P: IsA<Cancellable>>(
&self,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> FileType
&self,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> FileType
fn query_filesystem_info<P: IsA<Cancellable>>(
&self,
attributes: &str,
cancellable: Option<&P>
) -> Result<FileInfo, Error>
&self,
attributes: &str,
cancellable: Option<&P>
) -> Result<FileInfo, Error>
fn query_filesystem_info_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
attributes: &str,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
attributes: &str,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn query_filesystem_info_async_future(
&self,
attributes: &str,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
&self,
attributes: &str,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
fn query_info<P: IsA<Cancellable>>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<FileInfo, Error>
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<FileInfo, Error>
fn query_info_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn query_info_async_future(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
fn read<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<FileInputStream, Error>
&self,
cancellable: Option<&P>
) -> Result<FileInputStream, Error>
fn read_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileInputStream, Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn read_async_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInputStream, Error>> + 'static>>
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInputStream, Error>> + 'static>>
fn replace<P: IsA<Cancellable>>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
fn replace_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
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>>
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileOutputStream, Error>> + 'static>>
fn replace_contents<P: IsA<Cancellable>>(
&self,
contents: &[u8],
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<GString, Error>
&self,
contents: &[u8],
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<GString, Error>
fn replace_readwrite<P: IsA<Cancellable>>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
fn replace_readwrite_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
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>>
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileIOStream, Error>> + 'static>>
fn resolve_relative_path<P: AsRef<Path>>(
&self,
relative_path: P
) -> Option<File>
&self,
relative_path: P
) -> Option<File>
fn set_attribute_byte_string<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attribute_int32<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: i32,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
attribute: &str,
value: i32,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attribute_int64<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: i64,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
attribute: &str,
value: i64,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attribute_string<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attribute_uint32<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: u32,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
attribute: &str,
value: u32,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attribute_uint64<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: u64,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
attribute: &str,
value: u64,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attributes_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn set_attributes_async_future(
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
fn set_attributes_from_info<P: IsA<Cancellable>>(
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_display_name<P: IsA<Cancellable>>(
&self,
display_name: &str,
cancellable: Option<&P>
) -> Result<File, Error>
&self,
display_name: &str,
cancellable: Option<&P>
) -> Result<File, Error>
fn set_display_name_async<P: IsA<Cancellable>, Q: FnOnce(Result<File, Error>) + Send + 'static>(
&self,
display_name: &str,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
display_name: &str,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn set_display_name_async_future(
&self,
display_name: &str,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<File, Error>> + 'static>>
&self,
display_name: &str,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<File, Error>> + 'static>>
fn start_mountable<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: DriveStartFlags,
start_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
&self,
flags: DriveStartFlags,
start_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn start_mountable_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: DriveStartFlags,
start_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
flags: DriveStartFlags,
start_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn stop_mountable<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn stop_mountable_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn supports_thread_contexts(&self) -> bool
fn trash<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn trash_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn trash_async_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn unmount_mountable_with_operation<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn unmount_mountable_with_operation_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
Implementors
impl<O: IsA<File>> FileExt for O
[src]
fn append_to<P: IsA<Cancellable>>(
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
[src]
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
fn append_to_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn append_to_async_future(
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileOutputStream, Error>> + 'static>>
[src]
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileOutputStream, Error>> + 'static>>
fn copy<P: IsA<File>, Q: IsA<Cancellable>>(
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>
) -> Result<(), Error>
[src]
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>
) -> Result<(), Error>
fn copy_attributes<P: IsA<File>, Q: IsA<Cancellable>>(
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>
) -> Result<(), Error>
fn create<P: IsA<Cancellable>>(
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
[src]
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
fn create_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn create_async_future(
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileOutputStream, Error>> + 'static>>
[src]
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileOutputStream, Error>> + 'static>>
fn create_readwrite<P: IsA<Cancellable>>(
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
[src]
&self,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
fn create_readwrite_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn create_readwrite_async_future(
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileIOStream, Error>> + 'static>>
[src]
&self,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileIOStream, Error>> + 'static>>
fn delete<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn delete_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn delete_async_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn dup(&self) -> Option<File>
[src]
fn eject_mountable_with_operation<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn eject_mountable_with_operation_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn enumerate_children<P: IsA<Cancellable>>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<FileEnumerator, Error>
[src]
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<FileEnumerator, Error>
fn equal<P: IsA<File>>(&self, file2: &P) -> bool
[src]
fn find_enclosing_mount<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<Mount, Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<Mount, Error>
fn get_basename(&self) -> Option<PathBuf>
[src]
fn get_child<P: AsRef<Path>>(&self, name: P) -> Option<File>
[src]
fn get_child_for_display_name(&self, display_name: &str) -> Result<File, Error>
[src]
fn get_parent(&self) -> Option<File>
[src]
fn get_parse_name(&self) -> Option<GString>
[src]
fn get_path(&self) -> Option<PathBuf>
[src]
fn get_relative_path<P: IsA<File>>(&self, descendant: &P) -> Option<PathBuf>
[src]
fn get_uri(&self) -> GString
[src]
fn get_uri_scheme(&self) -> GString
[src]
fn has_parent<P: IsA<File>>(&self, parent: Option<&P>) -> bool
[src]
fn has_prefix<P: IsA<File>>(&self, prefix: &P) -> bool
[src]
fn has_uri_scheme(&self, uri_scheme: &str) -> bool
[src]
fn is_native(&self) -> bool
[src]
fn load_contents<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(Vec<u8>, GString), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(Vec<u8>, GString), Error>
fn load_contents_async<P: IsA<Cancellable>, Q: FnOnce(Result<(Vec<u8>, GString), Error>) + Send + 'static>(
&self,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
cancellable: Option<&P>,
callback: Q
)
fn load_contents_async_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<(Vec<u8>, GString), Error>> + 'static>>
[src]
&self
) -> Pin<Box_<dyn Future<Output = Result<(Vec<u8>, GString), Error>> + 'static>>
fn make_directory<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn make_directory_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn make_directory_async_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn make_directory_with_parents<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn make_symbolic_link<P: AsRef<Path>, Q: IsA<Cancellable>>(
&self,
symlink_value: P,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
symlink_value: P,
cancellable: Option<&Q>
) -> Result<(), Error>
fn measure_disk_usage<P: IsA<Cancellable>>(
&self,
flags: FileMeasureFlags,
cancellable: Option<&P>,
progress_callback: Option<Box_<dyn Fn(bool, u64, u64, u64) + 'static>>
) -> Result<(u64, u64, u64), Error>
[src]
&self,
flags: FileMeasureFlags,
cancellable: Option<&P>,
progress_callback: Option<Box_<dyn Fn(bool, u64, u64, u64) + 'static>>
) -> Result<(u64, u64, u64), Error>
fn monitor<P: IsA<Cancellable>>(
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
[src]
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
fn monitor_directory<P: IsA<Cancellable>>(
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
[src]
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
fn monitor_file<P: IsA<Cancellable>>(
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
[src]
&self,
flags: FileMonitorFlags,
cancellable: Option<&P>
) -> Result<FileMonitor, Error>
fn mount_enclosing_volume<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
[src]
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn mount_enclosing_volume_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn mount_mountable<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<File, Error>) + Send + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
[src]
&self,
flags: MountMountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn mount_mountable_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<File, Error>> + 'static>>
[src]
&self,
flags: MountMountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<File, Error>> + 'static>>
fn move_<P: IsA<File>, Q: IsA<Cancellable>>(
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>
) -> Result<(), Error>
[src]
&self,
destination: &P,
flags: FileCopyFlags,
cancellable: Option<&Q>,
progress_callback: Option<&mut dyn FnMut(i64, i64)>
) -> Result<(), Error>
fn open_readwrite<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
fn open_readwrite_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn open_readwrite_async_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileIOStream, Error>> + 'static>>
[src]
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileIOStream, Error>> + 'static>>
fn poll_mountable<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
cancellable: Option<&P>,
callback: Q
)
fn poll_mountable_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn query_default_handler<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<AppInfo, Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<AppInfo, Error>
fn query_exists<P: IsA<Cancellable>>(&self, cancellable: Option<&P>) -> bool
[src]
fn query_file_type<P: IsA<Cancellable>>(
&self,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> FileType
[src]
&self,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> FileType
fn query_filesystem_info<P: IsA<Cancellable>>(
&self,
attributes: &str,
cancellable: Option<&P>
) -> Result<FileInfo, Error>
[src]
&self,
attributes: &str,
cancellable: Option<&P>
) -> Result<FileInfo, Error>
fn query_filesystem_info_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
attributes: &str,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
attributes: &str,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn query_filesystem_info_async_future(
&self,
attributes: &str,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
[src]
&self,
attributes: &str,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
fn query_info<P: IsA<Cancellable>>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<FileInfo, Error>
[src]
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<FileInfo, Error>
fn query_info_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn query_info_async_future(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
[src]
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
fn read<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<FileInputStream, Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<FileInputStream, Error>
fn read_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileInputStream, Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn read_async_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInputStream, Error>> + 'static>>
[src]
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInputStream, Error>> + 'static>>
fn replace<P: IsA<Cancellable>>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
[src]
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileOutputStream, Error>
fn replace_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
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>>
[src]
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileOutputStream, Error>> + 'static>>
fn replace_contents<P: IsA<Cancellable>>(
&self,
contents: &[u8],
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<GString, Error>
[src]
&self,
contents: &[u8],
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<GString, Error>
fn replace_readwrite<P: IsA<Cancellable>>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
[src]
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
cancellable: Option<&P>
) -> Result<FileIOStream, Error>
fn replace_readwrite_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
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>>
[src]
&self,
etag: Option<&str>,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileIOStream, Error>> + 'static>>
fn resolve_relative_path<P: AsRef<Path>>(
&self,
relative_path: P
) -> Option<File>
[src]
&self,
relative_path: P
) -> Option<File>
fn set_attribute_byte_string<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attribute_int32<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: i32,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: i32,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attribute_int64<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: i64,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: i64,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attribute_string<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attribute_uint32<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: u32,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: u32,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attribute_uint64<P: IsA<Cancellable>>(
&self,
attribute: &str,
value: u64,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: u64,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_attributes_async<P: IsA<Cancellable>, Q: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn set_attributes_async_future(
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
[src]
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<FileInfo, Error>> + 'static>>
fn set_attributes_from_info<P: IsA<Cancellable>>(
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
info: &FileInfo,
flags: FileQueryInfoFlags,
cancellable: Option<&P>
) -> Result<(), Error>
fn set_display_name<P: IsA<Cancellable>>(
&self,
display_name: &str,
cancellable: Option<&P>
) -> Result<File, Error>
[src]
&self,
display_name: &str,
cancellable: Option<&P>
) -> Result<File, Error>
fn set_display_name_async<P: IsA<Cancellable>, Q: FnOnce(Result<File, Error>) + Send + 'static>(
&self,
display_name: &str,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
display_name: &str,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn set_display_name_async_future(
&self,
display_name: &str,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<File, Error>> + 'static>>
[src]
&self,
display_name: &str,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<File, Error>> + 'static>>
fn start_mountable<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: DriveStartFlags,
start_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
[src]
&self,
flags: DriveStartFlags,
start_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn start_mountable_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: DriveStartFlags,
start_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
flags: DriveStartFlags,
start_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn stop_mountable<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn stop_mountable_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn supports_thread_contexts(&self) -> bool
[src]
fn trash<P: IsA<Cancellable>>(
&self,
cancellable: Option<&P>
) -> Result<(), Error>
[src]
&self,
cancellable: Option<&P>
) -> Result<(), Error>
fn trash_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
[src]
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
fn trash_async_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn unmount_mountable_with_operation<P: IsA<MountOperation>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>,
cancellable: Option<&Q>,
callback: R
)
fn unmount_mountable_with_operation_future<P: IsA<MountOperation> + Clone + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Option<&P>
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>