Expand description
§alsatimer crate
Rust API bindings and wrappers for alsatimer library to operate ALSA Timer character device.
The alsatimer library version 0.3.0 is the minimum supported version for underlying library.
The alsatimer crate is automatically generated by gir tool provided by gtk-rs project. ALSATimer-0.0 file from alsatimer library is used for the generation. But some functions are implemented manually.
§Usage
Add the following line to your Cargo.toml file:
[dependencies]
alsatimer = "0.7"
The API documentation is available in https://docs.rs/alsatimer/.
§License
The alsatimer crate is released under MIT license.
§Dependency
The alsatimer crate depends on API crates provided by gtk-rs project for type/object system, event loop, and dispacher.
§Repository
The alsatimer crate is the part of ALSA project and maintained by ALSA gobject-introspection team. The remote repository is located in https://github.com/alsa-project/alsa-gobject-rs.
§Support
If finding issue, please file it in https://github.com/alsa-project/alsa-gobject-rs.
Re-exports§
pub use ffi;
Modules§
- prelude
- For convenience to provide auto-generated/manual traits, and their blanket implementations.
- subclass
- For subclass implementations derived from provided class.
Structs§
- Device
Id - A boxed object to express the identifier of timer device.
- Device
Info - A GObject-derived object to express information of timer device.
- Device
Info Flag - A set of flags for the information of timer device.
- Device
Params - A GObject-derived object to express parameter of timer device.
- Device
Status - A GObject-derived object to express status of timer device.
- Instance
Info - A GObject-derived object to express information of user instance.
- Instance
Param Flag - A set of flags for the parameters of user client.
- Instance
Params - A GObject-derived object to express parameters of user instance.
- Instance
Status - A GObject-derived object to express status of user instance.
- Real
Time Event - A boxed object to express event of timer with real time.
- Tick
Time Event - A boxed object to express event of timer with tick count.
- User
Instance - A GObject-derived object to express user instance.
Enums§
- Class
- A set of enumerations for the class of timer device.
- Event
Type - A set of enumerations for the type of event.
- Real
Time Event Type - A set of enumerations for the type of real time event.
- Slave
Class - A set of enumerations for the slave class of timer instance (not timer device).
- Specific
Global Device - A set of enumerations for the kind of global timer device.
- User
Instance Error - A set of error code for
glib::Error
withALSATimer.UserInstanceError
domain.
Functions§
- device_
id_ list - Get the list of existent timer device.
- device_
info - Get the information of timer device.
- device_
status - Get the status of timer device.
- devnode
- Allocate string of devnode for ALSA Timer and return it if exists.
- real_
time_ clock_ id - Get
clock_id
for real time. - set_
device_ params - Set the given parameters to the timer indicated by the identifier.
- sysname
- Allocate sysname for ALSA Timer and return it when it exists.