Docs.rs
  • cap-async-std-0.13.2
    • cap-async-std 0.13.2
    • 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.13.2-alpha.0 normal
      • unsafe-io ^0.3.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.13.2

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 OsStr

cap_async_std::path::Component::as_str 
cap_async_std::path::Path::to_strReturns a &str slice if the Path is valid unicode. 
cap_async_std::path::Path::eq 
cap_async_std::path::PathBuf::eq 
cap_async_std::path::Path::partial_cmp 
cap_async_std::path::PathBuf::partial_cmp 
cap_async_std::path::Iter::next 
cap_async_std::path::Component::as_ref 
cap_async_std::path::Iter::as_ref 
cap_async_std::path::PathBuf::as_ref 
cap_async_std::path::Components::as_ref 
cap_async_std::path::Path::as_ref 
cap_async_std::path::Component::as_os_strExtracts the underlying [OsStr] slice. 
cap_async_std::path::PrefixComponent::as_os_strReturns the raw [OsStr] slice for this prefix. 
cap_async_std::path::Path::as_os_strReturns the underlying OsStr slice. 
cap_async_std::path::Path::extensionExtracts the extension of file_name, if possible. 
cap_async_std::path::Path::file_nameReturns the final component of the Path, if there is one. 
cap_async_std::path::Path::file_stemExtracts the stem (non-extension) portion of file_name. 
cap_async_std::path::Iter::next_back