Function glycos::net::run::new[][src]

pub async fn new(db: PersistentGraph) -> Result<NodeFacade, Error>
Expand description

Create the required boilerplate for a running node. This contains a socket, a router, and a handler for the socket.

Returns a NodeFacade. NodeFacade can be used to query the Servers state.

The node will stop when the associated NodeFacade is dropped.