[−][src]Trait gio::FileExt
Required methods
fn append_to<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileOutputStream, Error>
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileOutputStream, Error>
fn append_to_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn create<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileOutputStream, Error>
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileOutputStream, Error>
fn create_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn create_readwrite<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileIOStream, Error>
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileIOStream, Error>
fn create_readwrite_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn delete<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<(), Error>
&self,
cancellable: Q
) -> Result<(), Error>
fn delete_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn dup(&self) -> Option<File>
fn eject_mountable_with_operation<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
fn equal<P: IsA<File>>(&self, file2: &P) -> bool
fn find_enclosing_mount<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<Mount, Error>
&self,
cancellable: Q
) -> 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) -> Option<GString>
fn get_uri_scheme(&self) -> Option<GString>
fn has_parent<'a, P: IsA<File> + 'a, Q: Into<Option<&'a P>>>(
&self,
parent: Q
) -> bool
&self,
parent: Q
) -> 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<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<(Vec<u8>, GString), Error>
&self,
cancellable: Q
) -> Result<(Vec<u8>, GString), Error>
fn load_contents_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(Vec<u8>, GString), Error>) + Send + 'static>(
&self,
cancellable: Q,
callback: R
)
&self,
cancellable: Q,
callback: R
)
fn make_directory<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<(), Error>
&self,
cancellable: Q
) -> Result<(), Error>
fn make_directory_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn make_directory_with_parents<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<(), Error>
&self,
cancellable: Q
) -> Result<(), Error>
fn make_symbolic_link<'a, P: AsRef<Path>, Q: IsA<Cancellable> + 'a, R: Into<Option<&'a Q>>>(
&self,
symlink_value: P,
cancellable: R
) -> Result<(), Error>
&self,
symlink_value: P,
cancellable: R
) -> Result<(), Error>
fn monitor<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
fn monitor_directory<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
fn monitor_file<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
fn mount_enclosing_volume<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
&self,
flags: MountMountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
fn mount_mountable<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<File, Error>) + Send + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
&self,
flags: MountMountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
fn open_readwrite<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<FileIOStream, Error>
&self,
cancellable: Q
) -> Result<FileIOStream, Error>
fn open_readwrite_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn poll_mountable<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
cancellable: Q,
callback: R
)
&self,
cancellable: Q,
callback: R
)
fn query_default_handler<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<AppInfo, Error>
&self,
cancellable: Q
) -> Result<AppInfo, Error>
fn query_exists<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> bool
&self,
cancellable: Q
) -> bool
fn query_file_type<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileQueryInfoFlags,
cancellable: Q
) -> FileType
&self,
flags: FileQueryInfoFlags,
cancellable: Q
) -> FileType
fn query_filesystem_info<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attributes: &str,
cancellable: Q
) -> Result<FileInfo, Error>
&self,
attributes: &str,
cancellable: Q
) -> Result<FileInfo, Error>
fn query_filesystem_info_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
attributes: &str,
io_priority: Priority,
cancellable: Q,
callback: R
)
&self,
attributes: &str,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn query_info<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<FileInfo, Error>
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<FileInfo, Error>
fn query_info_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn read<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<FileInputStream, Error>
&self,
cancellable: Q
) -> Result<FileInputStream, Error>
fn read_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileInputStream, Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn replace<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Cancellable> + 'b, R: Into<Option<&'b Q>>>(
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<FileOutputStream, Error>
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<FileOutputStream, Error>
fn replace_async<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Cancellable> + 'b, R: Into<Option<&'b Q>>, S: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
fn replace_contents<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Cancellable> + 'b, R: Into<Option<&'b Q>>>(
&self,
contents: &[u8],
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<GString, Error>
&self,
contents: &[u8],
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<GString, Error>
fn replace_readwrite<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Cancellable> + 'b, R: Into<Option<&'b Q>>>(
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<FileIOStream, Error>
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<FileIOStream, Error>
fn replace_readwrite_async<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Cancellable> + 'b, R: Into<Option<&'b Q>>, S: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
fn resolve_relative_path<P: AsRef<Path>>(
&self,
relative_path: P
) -> Option<File>
&self,
relative_path: P
) -> Option<File>
fn set_attribute_byte_string<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attribute_int32<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: i32,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
&self,
attribute: &str,
value: i32,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attribute_int64<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: i64,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
&self,
attribute: &str,
value: i64,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attribute_string<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attribute_uint32<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: u32,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
&self,
attribute: &str,
value: u32,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attribute_uint64<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: u64,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
&self,
attribute: &str,
value: u64,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attributes_async<'a, P: IsA<FileInfo>, Q: IsA<Cancellable> + 'a, R: Into<Option<&'a Q>>, S: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
info: &P,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
&self,
info: &P,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
fn set_attributes_from_info<'a, P: IsA<FileInfo>, Q: IsA<Cancellable> + 'a, R: Into<Option<&'a Q>>>(
&self,
info: &P,
flags: FileQueryInfoFlags,
cancellable: R
) -> Result<(), Error>
&self,
info: &P,
flags: FileQueryInfoFlags,
cancellable: R
) -> Result<(), Error>
fn set_display_name<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
display_name: &str,
cancellable: Q
) -> Result<File, Error>
&self,
display_name: &str,
cancellable: Q
) -> Result<File, Error>
fn set_display_name_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<File, Error>) + Send + 'static>(
&self,
display_name: &str,
io_priority: Priority,
cancellable: Q,
callback: R
)
&self,
display_name: &str,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn start_mountable<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: DriveStartFlags,
start_operation: Q,
cancellable: S,
callback: T
)
&self,
flags: DriveStartFlags,
start_operation: Q,
cancellable: S,
callback: T
)
fn stop_mountable<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
fn supports_thread_contexts(&self) -> bool
fn trash<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<(), Error>
&self,
cancellable: Q
) -> Result<(), Error>
fn trash_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn unmount_mountable_with_operation<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
Implementors
impl<O: IsA<File>> FileExt for O
[src]
fn append_to<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileOutputStream, Error>
[src]
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileOutputStream, Error>
fn append_to_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
[src]
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn create<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileOutputStream, Error>
[src]
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileOutputStream, Error>
fn create_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
[src]
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn create_readwrite<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileIOStream, Error>
[src]
&self,
flags: FileCreateFlags,
cancellable: Q
) -> Result<FileIOStream, Error>
fn create_readwrite_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
[src]
&self,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn delete<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<(), Error>
[src]
&self,
cancellable: Q
) -> Result<(), Error>
fn delete_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
[src]
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn dup(&self) -> Option<File>
[src]
fn eject_mountable_with_operation<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
fn equal<P: IsA<File>>(&self, file2: &P) -> bool
[src]
fn find_enclosing_mount<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<Mount, Error>
[src]
&self,
cancellable: Q
) -> 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) -> Option<GString>
[src]
fn get_uri_scheme(&self) -> Option<GString>
[src]
fn has_parent<'a, P: IsA<File> + 'a, Q: Into<Option<&'a P>>>(
&self,
parent: Q
) -> bool
[src]
&self,
parent: Q
) -> bool
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<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<(Vec<u8>, GString), Error>
[src]
&self,
cancellable: Q
) -> Result<(Vec<u8>, GString), Error>
fn load_contents_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(Vec<u8>, GString), Error>) + Send + 'static>(
&self,
cancellable: Q,
callback: R
)
[src]
&self,
cancellable: Q,
callback: R
)
fn make_directory<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<(), Error>
[src]
&self,
cancellable: Q
) -> Result<(), Error>
fn make_directory_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
[src]
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn make_directory_with_parents<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<(), Error>
[src]
&self,
cancellable: Q
) -> Result<(), Error>
fn make_symbolic_link<'a, P: AsRef<Path>, Q: IsA<Cancellable> + 'a, R: Into<Option<&'a Q>>>(
&self,
symlink_value: P,
cancellable: R
) -> Result<(), Error>
[src]
&self,
symlink_value: P,
cancellable: R
) -> Result<(), Error>
fn monitor<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
[src]
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
fn monitor_directory<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
[src]
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
fn monitor_file<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
[src]
&self,
flags: FileMonitorFlags,
cancellable: Q
) -> Result<FileMonitor, Error>
fn mount_enclosing_volume<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
[src]
&self,
flags: MountMountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
fn mount_mountable<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<File, Error>) + Send + 'static>(
&self,
flags: MountMountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
[src]
&self,
flags: MountMountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
fn open_readwrite<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<FileIOStream, Error>
[src]
&self,
cancellable: Q
) -> Result<FileIOStream, Error>
fn open_readwrite_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
[src]
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn poll_mountable<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
cancellable: Q,
callback: R
)
[src]
&self,
cancellable: Q,
callback: R
)
fn query_default_handler<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<AppInfo, Error>
[src]
&self,
cancellable: Q
) -> Result<AppInfo, Error>
fn query_exists<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> bool
[src]
&self,
cancellable: Q
) -> bool
fn query_file_type<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
flags: FileQueryInfoFlags,
cancellable: Q
) -> FileType
[src]
&self,
flags: FileQueryInfoFlags,
cancellable: Q
) -> FileType
fn query_filesystem_info<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attributes: &str,
cancellable: Q
) -> Result<FileInfo, Error>
[src]
&self,
attributes: &str,
cancellable: Q
) -> Result<FileInfo, Error>
fn query_filesystem_info_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
attributes: &str,
io_priority: Priority,
cancellable: Q,
callback: R
)
[src]
&self,
attributes: &str,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn query_info<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<FileInfo, Error>
[src]
&self,
attributes: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<FileInfo, Error>
fn query_info_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
[src]
&self,
attributes: &str,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn read<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<FileInputStream, Error>
[src]
&self,
cancellable: Q
) -> Result<FileInputStream, Error>
fn read_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<FileInputStream, Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
[src]
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn replace<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Cancellable> + 'b, R: Into<Option<&'b Q>>>(
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<FileOutputStream, Error>
[src]
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<FileOutputStream, Error>
fn replace_async<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Cancellable> + 'b, R: Into<Option<&'b Q>>, S: FnOnce(Result<FileOutputStream, Error>) + Send + 'static>(
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
[src]
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
fn replace_contents<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Cancellable> + 'b, R: Into<Option<&'b Q>>>(
&self,
contents: &[u8],
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<GString, Error>
[src]
&self,
contents: &[u8],
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<GString, Error>
fn replace_readwrite<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Cancellable> + 'b, R: Into<Option<&'b Q>>>(
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<FileIOStream, Error>
[src]
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
cancellable: R
) -> Result<FileIOStream, Error>
fn replace_readwrite_async<'a, 'b, P: Into<Option<&'a str>>, Q: IsA<Cancellable> + 'b, R: Into<Option<&'b Q>>, S: FnOnce(Result<FileIOStream, Error>) + Send + 'static>(
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
[src]
&self,
etag: P,
make_backup: bool,
flags: FileCreateFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
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<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attribute_int32<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: i32,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: i32,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attribute_int64<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: i64,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: i64,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attribute_string<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: &str,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attribute_uint32<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: u32,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: u32,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attribute_uint64<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
attribute: &str,
value: u64,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
[src]
&self,
attribute: &str,
value: u64,
flags: FileQueryInfoFlags,
cancellable: Q
) -> Result<(), Error>
fn set_attributes_async<'a, P: IsA<FileInfo>, Q: IsA<Cancellable> + 'a, R: Into<Option<&'a Q>>, S: FnOnce(Result<FileInfo, Error>) + Send + 'static>(
&self,
info: &P,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
[src]
&self,
info: &P,
flags: FileQueryInfoFlags,
io_priority: Priority,
cancellable: R,
callback: S
)
fn set_attributes_from_info<'a, P: IsA<FileInfo>, Q: IsA<Cancellable> + 'a, R: Into<Option<&'a Q>>>(
&self,
info: &P,
flags: FileQueryInfoFlags,
cancellable: R
) -> Result<(), Error>
[src]
&self,
info: &P,
flags: FileQueryInfoFlags,
cancellable: R
) -> Result<(), Error>
fn set_display_name<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
display_name: &str,
cancellable: Q
) -> Result<File, Error>
[src]
&self,
display_name: &str,
cancellable: Q
) -> Result<File, Error>
fn set_display_name_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<File, Error>) + Send + 'static>(
&self,
display_name: &str,
io_priority: Priority,
cancellable: Q,
callback: R
)
[src]
&self,
display_name: &str,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn start_mountable<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: DriveStartFlags,
start_operation: Q,
cancellable: S,
callback: T
)
[src]
&self,
flags: DriveStartFlags,
start_operation: Q,
cancellable: S,
callback: T
)
fn stop_mountable<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
fn supports_thread_contexts(&self) -> bool
[src]
fn trash<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
&self,
cancellable: Q
) -> Result<(), Error>
[src]
&self,
cancellable: Q
) -> Result<(), Error>
fn trash_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
[src]
&self,
io_priority: Priority,
cancellable: Q,
callback: R
)
fn unmount_mountable_with_operation<'a, 'b, P: IsA<MountOperation> + 'a, Q: Into<Option<&'a P>>, R: IsA<Cancellable> + 'b, S: Into<Option<&'b R>>, T: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)
[src]
&self,
flags: MountUnmountFlags,
mount_operation: Q,
cancellable: S,
callback: T
)