Skip to main content

Crate runtime_paths

Crate runtime_paths 

Source

Structs§

RuntimePaths

Enums§

RuntimeEnv
A local runtime environment, independent of build profile and cloud destination. Only an absent wire field defaults to production; invalid values fail decoding.

Functions§

clear_stale_unix_socket
Remove a Unix domain socket path only when nothing is accepting connections.
default_runtime_root
is_pid_alive
meowclient_endpoint_label_for_workdir
meowclient_named_pipe_name_for_workdir
owned_daemon_pid_from_file
If pid_file names a live process whose executable matches expected_binary, returns its pid. Missing files return Ok(None). Dead processes have their pid file removed and return Ok(None). Live processes with a different executable are left untouched and return Ok(None).
owned_meowclient_pid
Convenience wrapper: verify the default meowclient pid file against expected_binary.
paths_match
Compare process image paths, preferring canonical forms when available.
pid_matches_executable
True when pid is alive and its executable matches expected_binary.
process_executable_path
resolve_runtime_workdir
Resolve the runtime workdir from an explicit base home and startup env. The platform user home is needed only when no runtime home was supplied.
resolve_workdir
Compatibility helper for callers that only select production or development.
runtime_env
Libraries used before runtime startup retain the historical production default. Running processes set their immutable workdir before accepting any requests.
runtime_paths
runtime_workdir
set_runtime_context
Freeze the environment and workdir supplied by the owning startup entrypoint. This does not consult HOME, build profiles, configuration, or directory names.
set_runtime_workdir
Initialize an embedded production runtime with an explicit workdir. Non-production callers must use set_runtime_context with their startup env.
unix_peer_pid
Best-effort peer process id for a connected Unix domain socket.
workdir_identity_hash
Stable workdir identity for endpoint names (pipe / labels).