use-udp 0.1.0

UDP endpoint parsing and common UDP service helpers for RustUse.
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented1 out of 7 items with examples
  • Size
  • Source code size: 7.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 335.04 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-net
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-udp

use-udp provides small helpers for parsing UDP-style endpoints and looking up a few common UDP service ports.

Experimental: this crate is below 0.3.0 and the API may change.

Example Usage

use use_udp::{default_udp_port, format_udp_endpoint, parse_udp_endpoint};

let endpoint = parse_udp_endpoint("localhost:53").unwrap();

assert_eq!(endpoint.port, 53);
assert_eq!(default_udp_port("dns"), Some(53));
assert_eq!(format_udp_endpoint(&endpoint), "localhost:53");

Scope

  • Parsing and formatting UDP-style host-and-port endpoints.
  • Small common UDP service mappings.

Non-goals

  • UDP sockets.
  • Datagram sending.
  • Datagram receiving.
  • Broadcast or multicast I/O.

License

Licensed under MIT OR Apache-2.0.