Registry / networking / tokio-udp

tokio-udp

JSON →
library0.1.6rscratesunverified

UDP bindings for Tokio async runtime.

# Cargo.toml [dependencies] tokio-udp = "0.1.6"
INSTALL
IMPORT
SIG · TOKIO-UDP
T
tokio-udp
networkingrustv0.1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

UdpSocket
use tokio_udp::UdpSocket;

Binds a UDP socket

use tokio_udp::UdpSocket; #[tokio::main] async fn main() { let socket = UdpSocket::bind("127.0.0.1:0").await.unwrap(); println!("Bound to {}", socket.local_addr().unwrap()); }
Debug
Known issues
breakingDeprecated in favor of tokio::net::UdpSocket
fix
Use tokio::net::UdpSocket instead
affects: >=0.2.0
Upgrade
Version history
0.1.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Bingbot
1
OpenAI (training)
1
Resources
tokio-udp — cargo add tokio-udp · libregistry