Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica
Skip to main content

default_socket_url

Function default_socket_url 

Source
pub fn default_socket_url() -> String
Expand description

Default unix:// URL for Instance::connect, derived from default_socket_path.

Convenience for apps that want to connect to the local daemon’s socket without writing the env / $XDG_RUNTIME_DIR resolution themselves:

let instance = Instance::connect(eidetica::service::default_socket_url()).await?;