Expand description
§Pueue-lib
This is the shared library used by the Pueue client and daemon.
It contains everything you need to communicate with the daemon:
- The State, which represents the current state of the daemon as exposed to clients.
- The Task, TaskResult and TaskStatus
- The Settings used by both clients and the daemon.
asyncandblockingNetwork code. Everything you need to communicate with the daemon.- Request and Response message types.
network::send_requestandnetwork::receive_responsehelper functions.
- A reference
Clientimplementation. This is available with theclientfeature. The client also implementsClient::send_requestandClient::receive_response.
It also contains helper functions to read local logs.
Pueue-lib is a stand-alone crate, so it can be used by third-party applications to either manipulate or monitor the daemon or to simply write your own front-end for the daemon.
§Features
For a minimal setup, disable default features and enable client and network or network_blocking.
clientAdds aClientand/orBlockingClientimplementation, depending on whethernetworkand/ornetwork_blockingfeatures are active.networkadds async network and protocol functions.network_blockingadds blockingstdnetwork and protocol functions.logadds functions for reading pueue’s log files on the local machine.settingsSettingsstruct used by both the daemon and client.
Re-exports§
pub use error::Error;pub use message::Request;pub use message::Response;pub use network::client::Client;pub use network_blocking::client::BlockingClient;pub use settings::Settings;pub use state::Group;pub use state::GroupStatus;pub use state::State;pub use task::Task;pub use task::TaskResult;pub use task::TaskStatus;
Modules§
- error
- Pueue-lib errors.
- log
- Helper classes to read and write log files of Pueue’s tasks.
- message
- This contains the the
RequestandResponseenums and all their structs used to communicate with the daemon or client. - network
- This module contains everything that’s necessary to communicate with the pueue daemon or one of its clients.
- network_
blocking - This module contains everything that’s necessary to communicate with the pueue daemon or one of its clients.
- prelude
- secret
- Functions to write and read the secret to/from a file.
- settings
- Pueue’s configuration file representation.
- state
- The representation of the pueue daemon’s current State.
Contains all
Tasks andGroups of the daemon. - task
- Everything regarding Pueue’s Tasks.
- tls
- Helper functions for reading and handling TLS certificates.
Macros§
- failure_
msg - Macro to simplify creating failure_messages
- success_
msg - Macro to simplify creating success_messages