Weave documentation
Filament referencefilament-utilities

filament-utilities · crate

Source declarations, signatures and documentation for crate.

Read the current implementation boundaries before integration. This reference reproduces declarations; it omits source comments whose examples or readiness claims have not been verified.

Source: sigil/weave/filament/filament-utilities/src/lib.rs. SHA-256: 47ba796d5cb62f16576546ef6c505b55be66903d48dfce734484c02f1e2d9221.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

common

pub mod common;

Source line: 9.

daemon

pub mod daemon;

Source line: 10.

display

pub mod display;

Source line: 11.

rpc

pub mod rpc;

Source line: 12.

::UtilityError

#[derive(Error, Debug)]
pub enum UtilityError {
    #[error("Configuration error: {0}")]
    Config(String),

    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),

    #[error("RPC error: {0}")]
    Rpc(String),

    #[error("Instance not found")]
    InstanceNotFound,

    #[error("Permission denied: {0}")]
    PermissionDenied(String),

    #[error("Invalid argument: {0}")]
    InvalidArgument(String),

    #[error("Timeout waiting for response")]
    Timeout,

    #[error("Parse error: {0}")]
    Parse(String),

    #[error("Network error: {0}")]
    Network(String),
}

Source line: 16.

::Result

pub type Result<T> = std::result::Result<T, UtilityError>;

Source line: 46.

exit_codes

pub mod exit_codes;

Source line: 49.

exit_codes::SUCCESS

pub const SUCCESS: i32;

Source line: 51.

exit_codes::GENERAL_ERROR

pub const GENERAL_ERROR: i32;

Source line: 54.

exit_codes::MISUSE

pub const MISUSE: i32;

Source line: 57.

exit_codes::PERMISSION_DENIED

pub const PERMISSION_DENIED: i32;

Source line: 60.

exit_codes::CONFIG_ERROR

pub const CONFIG_ERROR: i32;

Source line: 63.

exit_codes::SERVICE_UNAVAILABLE

pub const SERVICE_UNAVAILABLE: i32;

Source line: 66.

exit_codes::TIMEOUT

pub const TIMEOUT: i32;

Source line: 69.

exit_codes::SIGTERM

pub const SIGTERM: i32;

Source line: 72.

::default_config_path

pub fn default_config_path() -> std::path::PathBuf;

Source line: 76.

::default_data_dir

pub fn default_data_dir() -> std::path::PathBuf;

Source line: 84.

::default_runtime_dir

pub fn default_runtime_dir() -> std::path::PathBuf;

Source line: 91.

::default_socket_path

pub fn default_socket_path() -> std::path::PathBuf;

Source line: 98.

::default_pid_path

pub fn default_pid_path() -> std::path::PathBuf;

Source line: 103.

On this page