Crate libbarto

Crate libbarto 

Source
Expand description

barto library

Structs§

Actix
hosts configuration
BartocInfo
bartoc client system information
Bartos
bartos configuration for clients
Bincode
Wrapper type to handle keys and values using bincode serialization
ClientData
bartoc client data
Command
A command to run on a worker
HourMinuteSecond
An hour, minute, and second combination
Initialize
An initialization message from bartos to a named bartoc client.
Mariadb
hosts configuration
OffsetDataTimeWrapper
An OffsetDateTime wrapper that implements bincode::Encode and bincode::Decode
Output
An output record from a bartoc client
Realtime
A realtime schedule
Schedule
A schedule
Schedules
The schedule to run commands on a given worker client
Status
An output record from a bartoc client
Tracing
Tracing configuration
UuidWrapper
A Uuid wrapper that implements bincode::Encode and bincode::Decode
YearMonthDay
A year month day combinations

Enums§

BartoCli
A message from a worker client to a worker session
Bartoc
A message from a worker client to a worker session
BartocWs
A message from a worker client to a worker session
BartosToBartoCli
An initialization message from bartos to a named bartoc client.
BartosToBartoc
A message from a worker client to a worker session
Data
A record of data from a bartoc client
Day
The date for a realtime schedule
DayOfWeek
The day of the week for a realtime schedule
Error
Error types for the barto library
Hour
The hour for a realtime schedule
Minute
The minute for a realtime schedule
MissedTick
The output table name
Month
The month for a realtime schedule
OutputKind
The kind of output (stdout or stderr)
OutputTableName
The output table name
Second
The seconds for a realtime schedule
StatusTableName
The status table name
Year
The year for a realtime schedule

Traits§

PathDefaults
Trait to allow default paths to be supplied to load
TlsConfig
A trait for types that provide TLS configuration details.
TracingConfigExt
Extension trait for TracingConfig to add additional configuration options

Functions§

clap_or_error
Converts an anyhow::Error into a suitable exit code or clap message for a CLI application.
header
Generate a pretty header
init_tracing
Initialize tracing
load
Load the configuration
load_tls_config
Generates a ServerConfig for TLS using the provided configuration.
parse_ts_ping
Parse a received timestamp ping
send_ts_ping
Send a timestamp ping
success
Indicates successful execution of a function, returning exit code 0.
to_path_buf
Convert a string to a PathBuf