Docs.rs
  • cap-async-std-3.4.4
    • cap-async-std 3.4.4
    • 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.7.0 normal optional
      • async-std ^1.13.0 normal
      • camino ^1.0.5 normal optional
      • cap-primitives ^3.4.4 normal
      • io-extras ^0.18.3 normal
      • io-lifetimes ^2.0.0 normal
      • rustix ^1.0.0 normal
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate cap_async_std

logo

cap_async_std3.4.4

  • All Items

Crate Items

  • Re-exports
  • Modules
  • Structs
  • Functions

Crates

  • cap_async_std

Crate cap_async_std

Source
Expand description

A capability-based API modeled after async_std.

This corresponds to async_std.

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

Two notable features are the Dir and Pool 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.
  • Pool 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 pools which may be passed through the program.

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

Re-exports§

pub use async_std;
pub use cap_primitives::ipnet;
pub use io_lifetimes;

Modules§

fs
A capability-based filesystem API modeled after async_std::fs.
net
A capability-based network API modeled after async_std::net.
os
OS-specific extensions.
time
A capability-based clock API modeled after std::time.

Structs§

AmbientAuthority
Instances of this AmbientAuthority type serve to indicate that the ambient_authority function has been called, indicating that the user has explicitly opted into using ambient authority.

Functions§

ambient_authority
Return an AmbientAuthority value, which allows use of functions that include an AmbientAuthority argument.

Results

Settings
Help
    trait
    cap_async_std::fs::FileExt
    Unix-specific extensions to [fs::File].
    trait method
    cap_async_std::fs::FileExt::write_at
    &FileExt, &[u8], u64 -> Result<usize, Error>
    Writes a number of bytes starting from a given offset.
    method
    cap_async_std::fs::FileExt::write_all_at
    &FileExt, &[u8], u64 -> Result<(), Error>
    Attempts to write an entire buffer starting from a given …
    trait method
    cap_async_std::fs::FileExt::read_at
    &FileExt, &mut [u8], u64 -> Result<usize, Error>
    Reads a number of bytes starting from a given offset.
    method
    cap_async_std::fs::FileExt::read_exact_at
    &FileExt, &mut [u8], u64 -> Result<(), Error>
    Reads the exact number of bytes required to fill buf from …
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.