Expand description
§Rust GIO bindings
Rust bindings and wrappers for GIO, part of gtk-rs-core.
GIO 2.56 is the lowest supported version for the underlying library.
§Minimum supported Rust version
Currently, the minimum supported Rust version is 1.70.0
.
§Documentation
§Using
We recommend using crates from crates.io, as demonstrated here.
If you want to track the bleeding edge, use the git dependency instead:
[dependencies]
gio = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "gio" }
Avoid mixing versioned and git crates like this:
# This will not compile
[dependencies]
gio = "0.13"
gio = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "gio" }
§See Also
§License
gio is available under the MIT License, please refer to it.
Re-exports§
pub use crate::resource::resources_register_include_impl;
pub use gio_sys as ffi;
pub use glib;
pub use crate::functions::*;
Modules§
- Traits and essential types intended for blanket imports.
Macros§
- Include gresources generated with
glib_build_tools::compile_resources
and register with glib.path
is relative toOUTDIR
.
Structs§
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- A future which can be cancelled via
Cancellable
. - Indicator that the
CancellableFuture
was cancelled. - GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- Debug
Controller v2_72
GLib type: GObject with reference counted clone semantics. - Debug
ControllerD Bus v2_72
GLib type: GObject with reference counted clone semantics. - Desktop
AppInfo Non-Windows and non-macOS GLib type: GObject with reference counted clone semantics. - GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: Inline allocated boxed type with stack copy semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- A
Stream
used to enumerate files in directories. - GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- The implementation of an
IOExtensionPoint
. - An extension point provides a mechanism to extend the functionality of a library or application. Each extension point is identified by a name, and it may optionally require that any implementation must be of a certain type.
- Builder for extension points.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- A handle to a task running on the I/O thread pool.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
LocalTask
provides idiomatic access to gio’sGTask
API, for instance by being generic over their value type, while not completely departing from the underlying C API.LocalTask
does not require its value to beSend
andSync
and thus is useful to to implement gio style asynchronous tasks that run in the glib main loop. If you need to run tasks in threads see theTask
type.- GLib type: GObject with reference counted clone semantics.
- Memory
Monitor v2_64
GLib type: GObject with reference counted clone semantics. - GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- Power
Profile Monitor v2_70
GLib type: GObject with reference counted clone semantics. - GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: Shared boxed type with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: Boxed type with copy-on-clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
Task
provides idiomatic access to gio’sGTask
API, for instance by being generic over their value type, while not completely departing from the underlying C API.Task
isSend
andSync
and requires its value to also beSend
andSync
, thus is useful to to implement gio style asynchronous tasks that run in threads. If you need to only run tasks in glib main loop see theLocalTask
type.- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- UnixFD
List Unix GLib type: GObject with reference counted clone semantics. - UnixFD
Message Unix GLib type: GObject with reference counted clone semantics. - Unix
Input Stream Unix GLib type: GObject with reference counted clone semantics. - Unix
Mount Entry Unix GLib type: Boxed type with copy-on-clone semantics. - Unix
Mount Point Unix GLib type: Boxed type with copy-on-clone semantics. - Unix
Output Stream Unix GLib type: GObject with reference counted clone semantics. - GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
- GLib type: GObject with reference counted clone semantics.
Enums§
- Pollable
Return v2_60
- TlsProtocol
Version v2_70
- TlsRehandshake
Mode Deprecated
Statics§
- VOLUME_
IDENTIFIER_ KIND_ HAL_ UDI Deprecated
Functions§
- Runs a blocking I/O task on the I/O thread pool.