Crate gio

source ·
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 ffi;
  • pub use glib;
  • pub use crate::functions::*;

Modules

Macros

  • Include gresources generated with glib_build_tools::compile_resources and register with glib. path is relative to OUTDIR.

Structs

Enums

Statics

Functions

  • Starts acquiring name on the bus specified by bus_type and calls name_acquired_handler and name_lost_handler when the name is acquired respectively lost. Callbacks will be invoked in the [thread-default main context][g-main-context-push-thread-default] of the thread you are calling this function from.
  • Like g_bus_own_name() but takes a DBusConnection instead of a BusType.
  • Starts watching name on the bus specified by bus_type and calls name_appeared_handler and name_vanished_handler when the name is known to have an owner respectively known to lose its owner. Callbacks will be invoked in the [thread-default main context][g-main-context-push-thread-default] of the thread you are calling this function from.
  • Like g_bus_watch_name() but takes a DBusConnection instead of a BusType.
  • Runs a blocking I/O task on the I/O thread pool.