Struct _GFileIface

Source
#[repr(C)]
pub struct _GFileIface {
Show 104 fields pub g_iface: GTypeInterface, pub dup: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut GFile>, pub hash: Option<unsafe extern "C" fn(file: *mut GFile) -> guint>, pub equal: Option<unsafe extern "C" fn(file1: *mut GFile, file2: *mut GFile) -> gboolean>, pub is_native: Option<unsafe extern "C" fn(file: *mut GFile) -> gboolean>, pub has_uri_scheme: Option<unsafe extern "C" fn(file: *mut GFile, uri_scheme: *const c_char) -> gboolean>, pub get_uri_scheme: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut c_char>, pub get_basename: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut c_char>, pub get_path: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut c_char>, pub get_uri: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut c_char>, pub get_parse_name: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut c_char>, pub get_parent: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut GFile>, pub prefix_matches: Option<unsafe extern "C" fn(prefix: *mut GFile, file: *mut GFile) -> gboolean>, pub get_relative_path: Option<unsafe extern "C" fn(parent: *mut GFile, descendant: *mut GFile) -> *mut c_char>, pub resolve_relative_path: Option<unsafe extern "C" fn(file: *mut GFile, relative_path: *const c_char) -> *mut GFile>, pub get_child_for_display_name: Option<unsafe extern "C" fn(file: *mut GFile, display_name: *const c_char, error: *mut *mut GError) -> *mut GFile>, pub enumerate_children: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, flags: GFileQueryInfoFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileEnumerator>, pub enumerate_children_async: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, flags: GFileQueryInfoFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub enumerate_children_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileEnumerator>, pub query_info: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, flags: GFileQueryInfoFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileInfo>, pub query_info_async: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, flags: GFileQueryInfoFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub query_info_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileInfo>, pub query_filesystem_info: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileInfo>, pub query_filesystem_info_async: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub query_filesystem_info_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileInfo>, pub find_enclosing_mount: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GMount>, pub find_enclosing_mount_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub find_enclosing_mount_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GMount>, pub set_display_name: Option<unsafe extern "C" fn(file: *mut GFile, display_name: *const c_char, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFile>, pub set_display_name_async: Option<unsafe extern "C" fn(file: *mut GFile, display_name: *const c_char, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub set_display_name_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFile>, pub query_settable_attributes: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileAttributeInfoList>, pub _query_settable_attributes_async: Option<unsafe extern "C" fn()>, pub _query_settable_attributes_finish: Option<unsafe extern "C" fn()>, pub query_writable_namespaces: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileAttributeInfoList>, pub _query_writable_namespaces_async: Option<unsafe extern "C" fn()>, pub _query_writable_namespaces_finish: Option<unsafe extern "C" fn()>, pub set_attribute: Option<unsafe extern "C" fn(file: *mut GFile, attribute: *const c_char, type_: GFileAttributeType, value_p: gpointer, flags: GFileQueryInfoFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>, pub set_attributes_from_info: Option<unsafe extern "C" fn(file: *mut GFile, info: *mut GFileInfo, flags: GFileQueryInfoFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>, pub set_attributes_async: Option<unsafe extern "C" fn(file: *mut GFile, info: *mut GFileInfo, flags: GFileQueryInfoFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub set_attributes_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, info: *mut *mut GFileInfo, error: *mut *mut GError) -> gboolean>, pub read_fn: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileInputStream>, pub read_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub read_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileInputStream>, pub append_to: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileOutputStream>, pub append_to_async: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub append_to_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileOutputStream>, pub create: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileOutputStream>, pub create_async: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub create_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileOutputStream>, pub replace: Option<unsafe extern "C" fn(file: *mut GFile, etag: *const c_char, make_backup: gboolean, flags: GFileCreateFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileOutputStream>, pub replace_async: Option<unsafe extern "C" fn(file: *mut GFile, etag: *const c_char, make_backup: gboolean, flags: GFileCreateFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub replace_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileOutputStream>, pub delete_file: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>, pub delete_file_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub delete_file_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub trash: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>, pub trash_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub trash_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub make_directory: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>, pub make_directory_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub make_directory_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub make_symbolic_link: Option<unsafe extern "C" fn(file: *mut GFile, symlink_value: *const c_char, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>, pub make_symbolic_link_async: Option<unsafe extern "C" fn(file: *mut GFile, symlink_value: *const c_char, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub make_symbolic_link_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub copy: Option<unsafe extern "C" fn(source: *mut GFile, destination: *mut GFile, flags: GFileCopyFlags, cancellable: *mut GCancellable, progress_callback: GFileProgressCallback, progress_callback_data: gpointer, error: *mut *mut GError) -> gboolean>, pub copy_async: Option<unsafe extern "C" fn(source: *mut GFile, destination: *mut GFile, flags: GFileCopyFlags, io_priority: c_int, cancellable: *mut GCancellable, progress_callback: GFileProgressCallback, progress_callback_data: gpointer, callback: GAsyncReadyCallback, user_data: gpointer)>, pub copy_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub move_: Option<unsafe extern "C" fn(source: *mut GFile, destination: *mut GFile, flags: GFileCopyFlags, cancellable: *mut GCancellable, progress_callback: GFileProgressCallback, progress_callback_data: gpointer, error: *mut *mut GError) -> gboolean>, pub move_async: Option<unsafe extern "C" fn(source: *mut GFile, destination: *mut GFile, flags: GFileCopyFlags, io_priority: c_int, cancellable: *mut GCancellable, progress_callback: GFileProgressCallback, progress_callback_data: gpointer, callback: GAsyncReadyCallback, user_data: gpointer)>, pub move_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub mount_mountable: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountMountFlags, mount_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub mount_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFile>, pub unmount_mountable: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountUnmountFlags, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub unmount_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub eject_mountable: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountUnmountFlags, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub eject_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub mount_enclosing_volume: Option<unsafe extern "C" fn(location: *mut GFile, flags: GMountMountFlags, mount_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub mount_enclosing_volume_finish: Option<unsafe extern "C" fn(location: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub monitor_dir: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileMonitorFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileMonitor>, pub monitor_file: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileMonitorFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileMonitor>, pub open_readwrite: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileIOStream>, pub open_readwrite_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub open_readwrite_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileIOStream>, pub create_readwrite: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileIOStream>, pub create_readwrite_async: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub create_readwrite_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileIOStream>, pub replace_readwrite: Option<unsafe extern "C" fn(file: *mut GFile, etag: *const c_char, make_backup: gboolean, flags: GFileCreateFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileIOStream>, pub replace_readwrite_async: Option<unsafe extern "C" fn(file: *mut GFile, etag: *const c_char, make_backup: gboolean, flags: GFileCreateFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub replace_readwrite_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileIOStream>, pub start_mountable: Option<unsafe extern "C" fn(file: *mut GFile, flags: GDriveStartFlags, start_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub start_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub stop_mountable: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountUnmountFlags, mount_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub stop_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub supports_thread_contexts: gboolean, pub unmount_mountable_with_operation: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountUnmountFlags, mount_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub unmount_mountable_with_operation_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub eject_mountable_with_operation: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountUnmountFlags, mount_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub eject_mountable_with_operation_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub poll_mountable: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>, pub poll_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>, pub measure_disk_usage: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileMeasureFlags, cancellable: *mut GCancellable, progress_callback: GFileMeasureProgressCallback, progress_data: gpointer, disk_usage: *mut guint64, num_dirs: *mut guint64, num_files: *mut guint64, error: *mut *mut GError) -> gboolean>, pub measure_disk_usage_async: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileMeasureFlags, io_priority: gint, cancellable: *mut GCancellable, progress_callback: GFileMeasureProgressCallback, progress_data: gpointer, callback: GAsyncReadyCallback, user_data: gpointer)>, pub measure_disk_usage_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, disk_usage: *mut guint64, num_dirs: *mut guint64, num_files: *mut guint64, error: *mut *mut GError) -> gboolean>,
}
Expand description

GFileIface: @g_iface: The parent interface. @dup: Duplicates a #GFile. @hash: Creates a hash of a #GFile. @equal: Checks equality of two given #GFiles. @is_native: Checks to see if a file is native to the system. @has_uri_scheme: Checks to see if a #GFile has a given URI scheme. @get_uri_scheme: Gets the URI scheme for a #GFile. @get_basename: Gets the basename for a given #GFile. @get_path: Gets the current path within a #GFile. @get_uri: Gets a URI for the path within a #GFile. @get_parse_name: Gets the parsed name for the #GFile. @get_parent: Gets the parent directory for the #GFile. @prefix_matches: Checks whether a #GFile contains a specified file. @get_relative_path: Gets the path for a #GFile relative to a given path. @resolve_relative_path: Resolves a relative path for a #GFile to an absolute path. @get_child_for_display_name: Gets the child #GFile for a given display name. @enumerate_children: Gets a #GFileEnumerator with the children of a #GFile. @enumerate_children_async: Asynchronously gets a #GFileEnumerator with the children of a #GFile. @enumerate_children_finish: Finishes asynchronously enumerating the children. @query_info: Gets the #GFileInfo for a #GFile. @query_info_async: Asynchronously gets the #GFileInfo for a #GFile. @query_info_finish: Finishes an asynchronous query info operation. @query_filesystem_info: Gets a #GFileInfo for the file system #GFile is on. @query_filesystem_info_async: Asynchronously gets a #GFileInfo for the file system #GFile is on. @query_filesystem_info_finish: Finishes asynchronously getting the file system info. @find_enclosing_mount: Gets a #GMount for the #GFile. @find_enclosing_mount_async: Asynchronously gets the #GMount for a #GFile. @find_enclosing_mount_finish: Finishes asynchronously getting the volume. @set_display_name: Sets the display name for a #GFile. @set_display_name_async: Asynchronously sets a #GFile’s display name. @set_display_name_finish: Finishes asynchronously setting a #GFile’s display name. @query_settable_attributes: Returns a list of #GFileAttributeInfos that can be set. @_query_settable_attributes_async: Asynchronously gets a list of #GFileAttributeInfos that can be set. @_query_settable_attributes_finish: Finishes asynchronously querying settable attributes. @query_writable_namespaces: Returns a list of #GFileAttributeInfo namespaces that are writable. @_query_writable_namespaces_async: Asynchronously gets a list of #GFileAttributeInfo namespaces that are writable. @_query_writable_namespaces_finish: Finishes asynchronously querying the writable namespaces. @set_attribute: Sets a #GFileAttributeInfo. @set_attributes_from_info: Sets a #GFileAttributeInfo with information from a #GFileInfo. @set_attributes_async: Asynchronously sets a file’s attributes. @set_attributes_finish: Finishes setting a file’s attributes asynchronously. @read_fn: Reads a file asynchronously. @read_async: Asynchronously reads a file. @read_finish: Finishes asynchronously reading a file. @append_to: Writes to the end of a file. @append_to_async: Asynchronously writes to the end of a file. @append_to_finish: Finishes an asynchronous file append operation. @create: Creates a new file. @create_async: Asynchronously creates a file. @create_finish: Finishes asynchronously creating a file. @replace: Replaces the contents of a file. @replace_async: Asynchronously replaces the contents of a file. @replace_finish: Finishes asynchronously replacing a file. @delete_file: Deletes a file. @delete_file_async: Asynchronously deletes a file. @delete_file_finish: Finishes an asynchronous delete. @trash: Sends a #GFile to the Trash location. @trash_async: Asynchronously sends a #GFile to the Trash location. @trash_finish: Finishes an asynchronous file trashing operation. @make_directory: Makes a directory. @make_directory_async: Asynchronously makes a directory. @make_directory_finish: Finishes making a directory asynchronously. @make_symbolic_link: (nullable): Makes a symbolic link. %NULL if symbolic links are unsupported. @make_symbolic_link_async: Asynchronously makes a symbolic link @make_symbolic_link_finish: Finishes making a symbolic link asynchronously. @copy: (nullable): Copies a file. %NULL if copying is unsupported, which will cause GFile to use a fallback copy method where it reads from the source and writes to the destination. @copy_async: Asynchronously copies a file. @copy_finish: Finishes an asynchronous copy operation. @move: Moves a file. @move_async: Asynchronously moves a file. Since: 2.72 @move_finish: Finishes an asynchronous move operation. Since: 2.72 @mount_mountable: Mounts a mountable object. @mount_mountable_finish: Finishes a mounting operation. @unmount_mountable: Unmounts a mountable object. @unmount_mountable_finish: Finishes an unmount operation. @eject_mountable: Ejects a mountable. @eject_mountable_finish: Finishes an eject operation. @mount_enclosing_volume: Mounts a specified location. @mount_enclosing_volume_finish: Finishes mounting a specified location. @monitor_dir: Creates a #GFileMonitor for the location. @monitor_file: Creates a #GFileMonitor for the location. @open_readwrite: Open file read/write. Since 2.22. @open_readwrite_async: Asynchronously opens file read/write. Since 2.22. @open_readwrite_finish: Finishes an asynchronous open read/write. Since 2.22. @create_readwrite: Creates file read/write. Since 2.22. @create_readwrite_async: Asynchronously creates file read/write. Since 2.22. @create_readwrite_finish: Finishes an asynchronous creates read/write. Since 2.22. @replace_readwrite: Replaces file read/write. Since 2.22. @replace_readwrite_async: Asynchronously replaces file read/write. Since 2.22. @replace_readwrite_finish: Finishes an asynchronous replace read/write. Since 2.22. @start_mountable: Starts a mountable object. Since 2.22. @start_mountable_finish: Finishes a start operation. Since 2.22. @stop_mountable: Stops a mountable. Since 2.22. @stop_mountable_finish: Finishes a stop operation. Since 2.22. @supports_thread_contexts: a boolean that indicates whether the #GFile implementation supports thread-default contexts. Since 2.22. @unmount_mountable_with_operation: Unmounts a mountable object using a #GMountOperation. Since 2.22. @unmount_mountable_with_operation_finish: Finishes an unmount operation using a #GMountOperation. Since 2.22. @eject_mountable_with_operation: Ejects a mountable object using a #GMountOperation. Since 2.22. @eject_mountable_with_operation_finish: Finishes an eject operation using a #GMountOperation. Since 2.22. @poll_mountable: Polls a mountable object for media changes. Since 2.22. @poll_mountable_finish: Finishes a poll operation for media changes. Since 2.22. @measure_disk_usage: Recursively measures the disk usage of @file. Since 2.38 @measure_disk_usage_async: Asynchronously recursively measures the disk usage of @file. Since 2.38 @measure_disk_usage_finish: Finishes an asynchronous recursive measurement of the disk usage of @file. Since 2.38

An interface for writing VFS file handles.

Fields§

§g_iface: GTypeInterface§dup: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut GFile>§hash: Option<unsafe extern "C" fn(file: *mut GFile) -> guint>§equal: Option<unsafe extern "C" fn(file1: *mut GFile, file2: *mut GFile) -> gboolean>§is_native: Option<unsafe extern "C" fn(file: *mut GFile) -> gboolean>§has_uri_scheme: Option<unsafe extern "C" fn(file: *mut GFile, uri_scheme: *const c_char) -> gboolean>§get_uri_scheme: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut c_char>§get_basename: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut c_char>§get_path: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut c_char>§get_uri: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut c_char>§get_parse_name: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut c_char>§get_parent: Option<unsafe extern "C" fn(file: *mut GFile) -> *mut GFile>§prefix_matches: Option<unsafe extern "C" fn(prefix: *mut GFile, file: *mut GFile) -> gboolean>§get_relative_path: Option<unsafe extern "C" fn(parent: *mut GFile, descendant: *mut GFile) -> *mut c_char>§resolve_relative_path: Option<unsafe extern "C" fn(file: *mut GFile, relative_path: *const c_char) -> *mut GFile>§get_child_for_display_name: Option<unsafe extern "C" fn(file: *mut GFile, display_name: *const c_char, error: *mut *mut GError) -> *mut GFile>§enumerate_children: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, flags: GFileQueryInfoFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileEnumerator>§enumerate_children_async: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, flags: GFileQueryInfoFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§enumerate_children_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileEnumerator>§query_info: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, flags: GFileQueryInfoFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileInfo>§query_info_async: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, flags: GFileQueryInfoFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§query_info_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileInfo>§query_filesystem_info: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileInfo>§query_filesystem_info_async: Option<unsafe extern "C" fn(file: *mut GFile, attributes: *const c_char, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§query_filesystem_info_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileInfo>§find_enclosing_mount: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GMount>§find_enclosing_mount_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§find_enclosing_mount_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GMount>§set_display_name: Option<unsafe extern "C" fn(file: *mut GFile, display_name: *const c_char, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFile>§set_display_name_async: Option<unsafe extern "C" fn(file: *mut GFile, display_name: *const c_char, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§set_display_name_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFile>§query_settable_attributes: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileAttributeInfoList>§_query_settable_attributes_async: Option<unsafe extern "C" fn()>§_query_settable_attributes_finish: Option<unsafe extern "C" fn()>§query_writable_namespaces: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileAttributeInfoList>§_query_writable_namespaces_async: Option<unsafe extern "C" fn()>§_query_writable_namespaces_finish: Option<unsafe extern "C" fn()>§set_attribute: Option<unsafe extern "C" fn(file: *mut GFile, attribute: *const c_char, type_: GFileAttributeType, value_p: gpointer, flags: GFileQueryInfoFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>§set_attributes_from_info: Option<unsafe extern "C" fn(file: *mut GFile, info: *mut GFileInfo, flags: GFileQueryInfoFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>§set_attributes_async: Option<unsafe extern "C" fn(file: *mut GFile, info: *mut GFileInfo, flags: GFileQueryInfoFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§set_attributes_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, info: *mut *mut GFileInfo, error: *mut *mut GError) -> gboolean>§read_fn: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileInputStream>§read_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§read_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileInputStream>§append_to: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileOutputStream>§append_to_async: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§append_to_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileOutputStream>§create: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileOutputStream>§create_async: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§create_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileOutputStream>§replace: Option<unsafe extern "C" fn(file: *mut GFile, etag: *const c_char, make_backup: gboolean, flags: GFileCreateFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileOutputStream>§replace_async: Option<unsafe extern "C" fn(file: *mut GFile, etag: *const c_char, make_backup: gboolean, flags: GFileCreateFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§replace_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileOutputStream>§delete_file: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>§delete_file_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§delete_file_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§trash: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>§trash_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§trash_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§make_directory: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>§make_directory_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§make_directory_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§make_symbolic_link: Option<unsafe extern "C" fn(file: *mut GFile, symlink_value: *const c_char, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>§make_symbolic_link_async: Option<unsafe extern "C" fn(file: *mut GFile, symlink_value: *const c_char, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§make_symbolic_link_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§copy: Option<unsafe extern "C" fn(source: *mut GFile, destination: *mut GFile, flags: GFileCopyFlags, cancellable: *mut GCancellable, progress_callback: GFileProgressCallback, progress_callback_data: gpointer, error: *mut *mut GError) -> gboolean>§copy_async: Option<unsafe extern "C" fn(source: *mut GFile, destination: *mut GFile, flags: GFileCopyFlags, io_priority: c_int, cancellable: *mut GCancellable, progress_callback: GFileProgressCallback, progress_callback_data: gpointer, callback: GAsyncReadyCallback, user_data: gpointer)>§copy_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§move_: Option<unsafe extern "C" fn(source: *mut GFile, destination: *mut GFile, flags: GFileCopyFlags, cancellable: *mut GCancellable, progress_callback: GFileProgressCallback, progress_callback_data: gpointer, error: *mut *mut GError) -> gboolean>§move_async: Option<unsafe extern "C" fn(source: *mut GFile, destination: *mut GFile, flags: GFileCopyFlags, io_priority: c_int, cancellable: *mut GCancellable, progress_callback: GFileProgressCallback, progress_callback_data: gpointer, callback: GAsyncReadyCallback, user_data: gpointer)>§move_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§mount_mountable: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountMountFlags, mount_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§mount_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFile>§unmount_mountable: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountUnmountFlags, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§unmount_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§eject_mountable: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountUnmountFlags, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§eject_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§mount_enclosing_volume: Option<unsafe extern "C" fn(location: *mut GFile, flags: GMountMountFlags, mount_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§mount_enclosing_volume_finish: Option<unsafe extern "C" fn(location: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§monitor_dir: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileMonitorFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileMonitor>§monitor_file: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileMonitorFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileMonitor>§open_readwrite: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileIOStream>§open_readwrite_async: Option<unsafe extern "C" fn(file: *mut GFile, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§open_readwrite_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileIOStream>§create_readwrite: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileIOStream>§create_readwrite_async: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileCreateFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§create_readwrite_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileIOStream>§replace_readwrite: Option<unsafe extern "C" fn(file: *mut GFile, etag: *const c_char, make_backup: gboolean, flags: GFileCreateFlags, cancellable: *mut GCancellable, error: *mut *mut GError) -> *mut GFileIOStream>§replace_readwrite_async: Option<unsafe extern "C" fn(file: *mut GFile, etag: *const c_char, make_backup: gboolean, flags: GFileCreateFlags, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§replace_readwrite_finish: Option<unsafe extern "C" fn(file: *mut GFile, res: *mut GAsyncResult, error: *mut *mut GError) -> *mut GFileIOStream>§start_mountable: Option<unsafe extern "C" fn(file: *mut GFile, flags: GDriveStartFlags, start_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§start_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§stop_mountable: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountUnmountFlags, mount_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§stop_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§supports_thread_contexts: gboolean§unmount_mountable_with_operation: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountUnmountFlags, mount_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§unmount_mountable_with_operation_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§eject_mountable_with_operation: Option<unsafe extern "C" fn(file: *mut GFile, flags: GMountUnmountFlags, mount_operation: *mut GMountOperation, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§eject_mountable_with_operation_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§poll_mountable: Option<unsafe extern "C" fn(file: *mut GFile, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer)>§poll_mountable_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, error: *mut *mut GError) -> gboolean>§measure_disk_usage: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileMeasureFlags, cancellable: *mut GCancellable, progress_callback: GFileMeasureProgressCallback, progress_data: gpointer, disk_usage: *mut guint64, num_dirs: *mut guint64, num_files: *mut guint64, error: *mut *mut GError) -> gboolean>§measure_disk_usage_async: Option<unsafe extern "C" fn(file: *mut GFile, flags: GFileMeasureFlags, io_priority: gint, cancellable: *mut GCancellable, progress_callback: GFileMeasureProgressCallback, progress_data: gpointer, callback: GAsyncReadyCallback, user_data: gpointer)>§measure_disk_usage_finish: Option<unsafe extern "C" fn(file: *mut GFile, result: *mut GAsyncResult, disk_usage: *mut guint64, num_dirs: *mut guint64, num_files: *mut guint64, error: *mut *mut GError) -> gboolean>

Trait Implementations§

Source§

impl Clone for _GFileIface

Source§

fn clone(&self) -> _GFileIface

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for _GFileIface

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for _GFileIface

Source§

fn eq(&self, other: &_GFileIface) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for _GFileIface

Source§

impl Eq for _GFileIface

Source§

impl StructuralPartialEq for _GFileIface

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.