Skip to main content

try_attach

Function try_attach 

Source
pub fn try_attach(
    layout: &Layout,
    socket: &Path,
    agent: &str,
    offline: bool,
    hooks: &AttachHooks,
) -> AttachOutcome
Expand description

Never probes the socket when offline. Otherwise: accept and initialize; on a free socket, ensure_serve then attach; on spawn failure stay core.