Docs.rs
  • cap-async-std-0.8.0
    • cap-async-std 0.8.0
    • Docs.rs crate page
    • Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • sunfishcode
    • wasmtime-publish
    • Dependencies
      • arf-strings ^0.3.0 normal
      • async-std ^1.8.0 normal
      • cap-primitives ^0.8.0 normal
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
☰
logo

Crate cap_async_std

Version 0.8.0

See all cap_async_std's items

  • Modules

Crates

  • cap_async_std
? Change settings

[−][src]Crate cap_async_std

[−] Expand description

A capability-oriented API modeled after async_std.

This corresponds to async_std.

Capability-oriented APIs represent access to external resources as objects which can be passed around between different parts of a program.

Two notable features are the Dir and Catalog types:

  • Dir represents an open directory in a filesystem. Instead of opening files by absolute paths or paths relative to the current working directory, files are opened via paths relative to a Dir. The concepts of a process-wide "current working directory" and a single global filesystem namespace are de-emphasized.
  • Catalog represents a set of network addresses. Instead of allowing applications to request access to any address and then applying process-wide filtering rules, filtering rules are built into catalogs which may be passed through the program.

On WASI, use of this library closely reflects the underlying system API, so it avoids compatibility layers.

Modules

fs

A capability-oriented filesystem API modeled after async_std::fs.

net

A capability-oriented network API modeled after async_std::net.

os

OS-specific extensions.

path

Cross-platform path manipulation.

time

A capability-oriented clock API modeled after std::time.

Results for ToSocketAddrs

In Names
(5)
In Parameters
(5)
In Return Types
(0)
cap_async_std::net::ToSocketAddrsConverts or resolves addresses to SocketAddr values. 
cap_async_std::net::ToSocketAddrs::to_socket_addrsConverts this object to an iterator of resolved SocketAddr… 
cap_async_std::net::SocketAddrV4::to_socket_addrs 
cap_async_std::net::SocketAddr::to_socket_addrs 
cap_async_std::net::SocketAddrV6::to_socket_addrs 
cap_async_std::net::Catalog::bind_udp_socket 
cap_async_std::net::Catalog::bind_tcp_listener 
cap_async_std::net::Catalog::connect_tcp_stream 
cap_async_std::net::Catalog::connect_udp_socket 
cap_async_std::net::Catalog::send_to_udp_socket_addr 
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.