Docs.rs
  • cap-async-std-0.7.0
    • cap-async-std 0.7.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.7.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.7.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 Dir

In Names
(35)
In Parameters
(0)
In Return Types
(1)
cap_async_std::fs::DirA reference to an open directory on a filesystem. 
cap_async_std::fs::FileType::dirCreates a FileType for which is_dir() returns true. 
cap_async_std::path::Component::CurDirA reference to the current directory, i.e., .. 
cap_async_std::fs::FileType::is_dirTests whether this file type represents a directory. 
cap_async_std::fs::Metadata::is_dirReturns true if this metadata is for a directory. 
cap_async_std::fs::Dir::is_dirChecks if path is a directory. 
cap_async_std::path::Path::is_dirReturns true if the path exists on disk and is pointing … 
cap_async_std::fs::ReadDirIterator over the entries in a directory. 
cap_async_std::path::Component::RootDirThe root directory component, appears after any prefix … 
cap_async_std::fs::DirEntryEntries returned by the ReadDir iterator. 
cap_async_std::fs::Dir::open_dirAttempts to open a directory. 
cap_async_std::fs::DirEntry::open_dirOpen the entry as a directory. 
cap_async_std::fs::Dir::read_dirReturns an iterator over the entries within a directory. 
cap_async_std::path::Path::read_dirReturns a stream over the entries within a directory. 
cap_async_std::path::Component::ParentDirA reference to the parent directory, i.e., ... 
cap_async_std::fs::Dir::create_dirCreates a new, empty directory at the provided path. 
cap_async_std::fs::DirBuilderA builder used to create directories in various manners. 
cap_async_std::fs::Dir::remove_dirRemoves an empty directory. 
cap_async_std::fs::DirEntry::remove_dirRemoves the directory from its filesystem. 
cap_async_std::fs::Dir::create_dir_allRecursively create a directory and all of its parent … 
cap_async_std::fs::Dir::remove_dir_allRemoves a directory at this path, after removing all its … 
cap_async_std::fs::Dir::create_dir_withCreates the specified directory with the options … 
cap_async_std::fs::Dir::remove_open_dirRemove the directory referenced by self and consume self. 
cap_async_std::fs::Dir::open_ambient_dirConstructs a new instance of Self by opening the given … 
cap_async_std::fs::Dir::remove_open_dir_allRemoves the directory referenced by self, after removing … 
cap_async_std::time::Duration::div 
cap_async_std::net::SocketAddr::ipReturns the IP address associated with this socket … 
cap_async_std::net::SocketAddrV4::ipReturns the IP address associated with this socket … 
cap_async_std::net::SocketAddrV6::ipReturns the IP address associated with this socket … 
cap_async_std::fs::Metadata::dev 
cap_async_std::fs::Metadata::gid 
cap_async_std::fs::Metadata::uid 
cap_async_std::path::Prefix::DiskPrefix C: for the given disk drive. 
cap_async_std::os::unix::net::UnixDatagram::pairCreates an unnamed pair of connected sockets. 
cap_async_std::os::unix::net::UnixStream::pairCreates an unnamed pair of connected sockets. 
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.
cap_async_std::fs::DirEntry::open_dirOpen the entry as a directory.