Skip to main content

try_connect

Function try_connect 

Source
pub fn try_connect() -> Result<Option<UnixStream>, String>
Expand description

Try to connect to the Scrybe socket at the default location. Ok(Some(_)) = live server, Ok(None) = no server running, Err(_) = something else went wrong (e.g. permission denied).