Module utils

Module utils 

Source
Expand description

Module containing utility functions and error types.

This module provides common utilities and error types used throughout the library, including exception types for handling illegal arguments and states.

Re-exports§

pub use error::IllegalArgumentException;
pub use error::IllegalStateException;

Modules§

error
Module containing custom error types used throughout the library.

Structs§

Proxy
Simple class representing a Proxy configuration.

Functions§

clean_message
Clean the message from newlines and carriage returns and convert it to lowercase. Also remove all brackets.
parse_arguments
Parses a comma-separated string input into a vector of string slices (Vec<&str>).
setup_logger
Sets up a logger for the application
setup_logger_with_level
Sets up a logger with a user-specified log level for platforms
setup_signal_hook
Sets up cross-platform signal handling for graceful shutdown. On Unix systems, handles SIGINT and SIGTERM signals. On Windows, handles Ctrl+C signal.