Skip to main content

Crate nuvo

Crate nuvo 

Source
Expand description

Nuvo: A simple and secure client-server communication library.

This crate provides a high-level API for establishing secure TCP connections between a Receiver (server) and a Sender (client). It supports both asynchronous (Tokio-based) and synchronous (blocking) operations.

§Examples

use nuvo::{receiver, sender};

#[tokio::main(flavor = "current_thread")]
async fn main() -> std::io::Result<()> {
    let rx = receiver(8080).password("mypass").listen().await?;
    // ... accept and communicate
    Ok(())
}

Structs§

Receiver
A receiver that listens for incoming connections.
ReceiverBuilder
A builder for creating a Receiver.
Sender
A sender (or accepted session) used to communicate with a peer.
SenderBuilder
A builder for creating a Sender.

Functions§

receiver
Entry point to build a Receiver.
sender
Entry point to build a Sender.