pueue_lib/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#![doc = include_str!("../README.md")]

pub(crate) mod internal_prelude {
    #![allow(unused_imports)]
    pub use tracing::{debug, error, info, trace, warn};
}

/// Shared module for internal logic!
/// Contains helper for command aliasing.
pub mod aliasing;
/// Pueue lib's own Error implementation.
pub mod error;
/// Formatting methods for several data types.
pub mod format;
/// Helper classes to read and write log files of Pueue's tasks.
pub mod log;
pub mod network;
/// This module contains all platform unspecific default values and helper functions for working
/// with our setting representation.
mod setting_defaults;
/// Pueue's configuration representation.
pub mod settings;
/// The representation of all [`Task`]s and [`Group`]s of the daemon.
pub mod state;
/// Everything regarding Pueue's task
pub mod task;

pub use error::Error;
pub use network::{
    message::{Request, Response},
    protocol::{receive_request, receive_response, send_request, send_response},
};
pub use settings::Settings;
pub use state::{Group, GroupStatus, State};
pub use task::{Task, TaskResult, TaskStatus};