Skip to main content

connect

Function connect 

Source
pub async fn connect<T: 'static + MeshField + Send>(
    driver: impl Driver + Spawn + Clone,
    path: &Path,
) -> Result<(Sender<T>, Connection)>
Expand description

Connect to a mesh listener at path.

Returns a [mesh::Sender<T>] for sending messages to the listener, and a Connection that keeps the underlying IPC node alive. Drop Connection to disconnect.