Docs.rs
  • cap-async-std-0.14.0
    • cap-async-std 0.14.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.9.0 normal
      • cap-primitives ^0.14.0 normal
      • ipnet ^2.3.0 normal
      • unsafe-io ^0.6.0 normal
      • posish ^0.6.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.14.0

See all cap_async_std's items

  • Modules
  • Structs
  • Functions

Modules

  • fs
  • net
  • os
  • path
  • time

Structs

  • AmbientAuthority

Functions

  • ambient_authority
Change settings

Crate cap_async_std[−][src]

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.

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.

path

Cross-platform path manipulation.

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 for SystemTime

cap_async_std::time::SystemTime
A measurement of the system clock, useful for talking to …
cap_async_std::time::SystemTimeError
An error returned from the duration_since and elapsed …
cap_async_std::time::SystemTime::eq
cap_async_std::time::SystemTime::ne
cap_async_std::time::SystemTime::cmp
cap_async_std::time::SystemClock::elapsed
Returns the amount of time elapsed since this instant was …
cap_async_std::time::SystemTime::from_std
Constructs a new instance of Self from the given […
cap_async_std::time::SystemTime::partial_cmp
cap_async_std::time::SystemTime::duration_since
Returns the amount of time elapsed from another instant …
cap_async_std::time::SystemTime::add
Panics
cap_async_std::time::SystemClock::now
Returns an instant corresponding to “now”.
cap_async_std::time::SystemTime::sub
cap_async_std::time::SystemTime::clone
cap_async_std::fs::Metadata::created
Returns the creation time listed in this metadata.
cap_async_std::fs::Metadata::accessed
Returns the last access time of this metadata.
cap_async_std::time::SystemTime::from_std
Constructs a new instance of Self from the given […
cap_async_std::time::SystemTime::into_std
Constructs a new instance of [std::time::SystemTime] from …
cap_async_std::fs::Metadata::modified
Returns the last modification time listed in this …
cap_async_std::time::SystemTime::checked_add
Returns Some(t) where t is the time self + duration if t …
cap_async_std::time::SystemTime::checked_sub
Returns Some(t) where t is the time self - duration if t …