Expand description
§Rust GLib Unix bindings
Rust bindings and wrappers for glib, part of gtk-rs-core.
GLib 2.56 is the lowest supported version for the underlying library.
§Minimum supported Rust version
Currently, the minimum supported Rust version is 1.83.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]
glib = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "glib" }Avoid mixing versioned and git crates like this:
# This will not compile
[dependencies]
glib = "0.13"
glib = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "glib" }§See Also
§License
glib-unix is available under the MIT License, please refer to it.
Re-exports§
pub use ffi;
Modules§
Functions§
- closefrom
- error_
quark - fd_
source_ new - Adds a closure to be called by the main loop the returned
Sourceis attached to whenever a UNIX file descriptor reaches the given IO condition. - signal_
future - Create a
Futurethat will resolve once the given UNIX signal is raised - signal_
future_ with_ priority futures - Create a
Futurethat will resolve once the given UNIX signal is raised - signal_
source_ new - Adds a closure to be called by the main loop the returned
Sourceis attached to whenever a UNIX signal is raised. - signal_
stream futures - Create a
Streamthat will provide a value whenever the given UNIX signal is raised - signal_
stream_ with_ priority futures - Create a
Streamthat will provide a value whenever the given UNIX signal is raised - unix_
fd_ add - Adds a closure to be called by the main loop the returned
Sourceis attached to whenever a UNIX file descriptor reaches the given IO condition. - unix_
fd_ add_ full - Adds a closure to be called by the main loop the returned
Sourceis attached to whenever a UNIX file descriptor reaches the given IO condition. - unix_
fd_ add_ local - Adds a closure to be called by the main loop the returned
Sourceis attached to whenever a UNIX file descriptor reaches the given IO condition. - unix_
fd_ add_ local_ full - Adds a closure to be called by the main loop the returned
Sourceis attached to whenever a UNIX file descriptor reaches the given IO condition. - unix_
open_ pipe - unix_
signal_ add - Adds a closure to be called by the default main loop whenever a UNIX signal is raised.
- unix_
signal_ add_ local - Adds a closure to be called by the default main loop whenever a UNIX signal is raised.
- unix_
signal_ add_ local_ once - Adds a closure to be called by the default main loop whenever a UNIX signal is raised.
- unix_
signal_ add_ once - Adds a closure to be called by the default main loop whenever a UNIX signal is raised.