Struct qjsonrpc::IncomingConn
source · pub struct IncomingConn { /* private fields */ }
Implementations§
source§impl IncomingConn
impl IncomingConn
sourcepub async fn get_next(&mut self) -> Result<Option<IncomingJsonRpcRequest>>
pub async fn get_next(&mut self) -> Result<Option<IncomingJsonRpcRequest>>
Get the next incoming peer connection.
The next
function blocks until a peer establishes a new connection.