Docs.rs
  • cap-async-std-0.13.6
    • cap-async-std 0.13.6
    • 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.13.5 normal
      • unsafe-io ^0.5.1 normal
      • posish ^0.5.12 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.13.6

See all cap_async_std's items

  • Modules

Crates

  • cap_async_std
Change settings

Crate cap_async_std[−][src]

[−] 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 metadata

cap_async_std::fs::MetadataMetadata information about a file. 
cap_async_std::fs::Dir::metadataGiven a path, query the file system to get information … 
cap_async_std::fs::DirEntry::metadataReturns the metadata for the file that this entry points … 
cap_async_std::fs::File::metadataQueries metadata about the underlying file. 
cap_async_std::path::Path::metadataReads the metadata of a file or directory. 
cap_async_std::fs::Dir::symlink_metadataQuery the metadata about a file without following … 
cap_async_std::path::Path::symlink_metadataReads the metadata of a file or directory without … 
cap_async_std::fs::Metadata::from_just_metadataConstructs a new instance of Self from the given [… 
cap_async_std::fs::Metadata::from_just_metadataConstructs a new instance of Self from the given [… 
cap_async_std::fs::Dir::metadataGiven a path, query the file system to get information … 
cap_async_std::fs::DirEntry::metadataReturns the metadata for the file that this entry points … 
cap_async_std::fs::File::metadataQueries metadata about the underlying file. 
cap_async_std::fs::Metadata::clone 
cap_async_std::fs::Metadata::from_fileConstructs a new instance of Self from the given [… 
cap_async_std::fs::Dir::symlink_metadataQuery the metadata about a file without following … 
cap_async_std::fs::Metadata::from_just_metadataConstructs a new instance of Self from the given […