Docs.rs
  • cap-async-std-0.13.4
    • cap-async-std 0.13.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.3.0 normal
      • async-std ^1.9.0 normal
      • cap-primitives ^0.13.4-alpha.0 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
    • 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
☰
logo

Crate cap_async_std

Version 0.13.4

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 Result

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.
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::Permissions::fmt 
cap_async_std::fs::OpenOptions::fmt 
cap_async_std::fs::Metadata::fmt 
cap_async_std::fs::DirBuilder::fmt 
cap_async_std::fs::FileType::fmt 
cap_async_std::fs::Dir::fmt 
cap_async_std::fs::DirEntry::fmt 
cap_async_std::fs::File::fmt 
cap_async_std::fs::ReadDir::fmt 
cap_async_std::net::Ipv6Addr::fmt 
cap_async_std::net::SocketAddrV6::fmt 
cap_async_std::net::SocketAddr::fmt 
cap_async_std::net::AddrParseError::fmt 
cap_async_std::net::SocketAddrV4::fmt 
cap_async_std::net::IpAddr::fmt 
cap_async_std::net::Shutdown::fmt 
cap_async_std::net::Ipv4Addr::fmt 
cap_async_std::os::unix::net::SocketAddr::fmt 
cap_async_std::path::Prefix::fmt 
cap_async_std::path::Display::fmt 
cap_async_std::path::PrefixComponent::fmt 
cap_async_std::path::Component::fmt 
cap_async_std::path::StripPrefixError::fmt 
cap_async_std::path::Path::fmt 
cap_async_std::path::PathBuf::fmt 
cap_async_std::path::Ancestors::fmt 
cap_async_std::path::Components::fmt 
cap_async_std::path::Iter::fmt 
cap_async_std::time::SystemTimeError::fmt 
cap_async_std::time::Duration::fmt 
cap_async_std::time::SystemTime::fmt 
cap_async_std::time::Instant::fmt 
cap_async_std::net::TcpStream::ttlGets the value of the IP_TTL option for this socket. 
cap_async_std::net::UdpSocket::ttlGets the value of the IP_TTL option for this socket. 
cap_async_std::fs::Dir::openAttempts to open a file in read-only mode. 
cap_async_std::fs::DirEntry::openOpen the file for reading. 
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. 
cap_async_std::path::Component::as_str 
cap_async_std::fs::Dir::createOpens a file in write-only mode. 
cap_async_std::fs::Dir::renameRename a file or directory to a new name, replacing the … 
cap_async_std::fs::Metadata::createdReturns the creation time listed in this metadata. 
cap_async_std::time::SystemClock::elapsedReturns the amount of time elapsed since this instant was … 
cap_async_std::fs::Dir::entriesReturns an iterator over the entries within self. 
cap_async_std::net::TcpStream::nodelayGets the value of the TCP_NODELAY option on this socket. 
cap_async_std::net::TcpStream::set_ttlSets the value for the IP_TTL option on this socket. 
cap_async_std::net::UdpSocket::set_ttlSets the value for the IP_TTL option on this socket. 
cap_async_std::fs::Dir::symlinkCreates a new symbolic link on a filesystem. 
cap_async_std::os::unix::net::UnixDatagram::unboundCreates a Unix Datagram socket which is not bound to any … 
cap_async_std::fs::Metadata::accessedReturns the last access time of this metadata. 
cap_async_std::path::Component::as_c_str 
cap_async_std::net::Ipv4Addr::from_str 
cap_async_std::net::SocketAddr::from_str 
cap_async_std::net::IpAddr::from_str 
cap_async_std::net::SocketAddrV6::from_str 
cap_async_std::net::Ipv6Addr::from_str 
cap_async_std::net::SocketAddrV4::from_str 
cap_async_std::path::PathBuf::from_str 
cap_async_std::fs::Permissions::into_stdConsumes self and produces a new instance of … 
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::modifiedReturns the last modification time listed in this … 
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::net::TcpStream::shutdownShuts down the read, write, or both halves of this … 
cap_async_std::os::unix::net::UnixDatagram::shutdownShut down the read, write, or both halves of this … 
cap_async_std::os::unix::net::UnixStream::shutdownShuts down the read, write, or both halves of this … 
cap_async_std::fs::Dir::try_from 
cap_async_std::fs::DirEntry::try_from 
cap_async_std::fs::File::try_from 
cap_async_std::fs::ReadDir::try_from 
cap_async_std::fs::DirBuilder::try_from 
cap_async_std::fs::FileType::try_from 
cap_async_std::fs::Metadata::try_from 
cap_async_std::fs::OpenOptions::try_from 
cap_async_std::fs::Permissions::try_from 
cap_async_std::net::Catalog::try_from 
cap_async_std::net::Incoming::try_from 
cap_async_std::net::TcpListener::try_from 
cap_async_std::net::TcpStream::try_from 
cap_async_std::net::UdpSocket::try_from 
cap_async_std::net::AddrParseError::try_from 
cap_async_std::net::IpAddr::try_from 
cap_async_std::net::Ipv4Addr::try_from 
cap_async_std::net::Ipv6Addr::try_from 
cap_async_std::net::Shutdown::try_from 
cap_async_std::net::SocketAddr::try_from 
cap_async_std::net::SocketAddrV4::try_from 
cap_async_std::net::SocketAddrV6::try_from 
cap_async_std::os::unix::net::Incoming::try_from 
cap_async_std::os::unix::net::UnixDatagram::try_from 
cap_async_std::os::unix::net::UnixListener::try_from 
cap_async_std::os::unix::net::UnixStream::try_from 
cap_async_std::os::unix::net::SocketAddr::try_from 
cap_async_std::path::Component::try_from 
cap_async_std::path::Display::try_from 
cap_async_std::path::Prefix::try_from 
cap_async_std::path::PrefixComponent::try_from 
cap_async_std::path::StripPrefixError::try_from 
cap_async_std::path::Ancestors::try_from 
cap_async_std::path::Components::try_from 
cap_async_std::path::Iter::try_from 
cap_async_std::path::PathBuf::try_from 
cap_async_std::time::Duration::try_from 
cap_async_std::time::Instant::try_from 
cap_async_std::time::MonotonicClock::try_from 
cap_async_std::time::SystemClock::try_from 
cap_async_std::time::SystemTime::try_from 
cap_async_std::time::SystemTimeError::try_from 
cap_async_std::fs::Dir::try_into 
cap_async_std::fs::DirEntry::try_into 
cap_async_std::fs::File::try_into 
cap_async_std::fs::ReadDir::try_into 
cap_async_std::fs::DirBuilder::try_into 
cap_async_std::fs::FileType::try_into 
cap_async_std::fs::Metadata::try_into 
cap_async_std::fs::OpenOptions::try_into 
cap_async_std::fs::Permissions::try_into 
cap_async_std::net::Catalog::try_into 
cap_async_std::net::Incoming::try_into 
cap_async_std::net::TcpListener::try_into 
cap_async_std::net::TcpStream::try_into 
cap_async_std::net::UdpSocket::try_into 
cap_async_std::net::AddrParseError::try_into 
cap_async_std::net::IpAddr::try_into 
cap_async_std::net::Ipv4Addr::try_into 
cap_async_std::net::Ipv6Addr::try_into 
cap_async_std::net::Shutdown::try_into 
cap_async_std::net::SocketAddr::try_into 
cap_async_std::net::SocketAddrV4::try_into 
cap_async_std::net::SocketAddrV6::try_into 
cap_async_std::os::unix::net::Incoming::try_into 
cap_async_std::os::unix::net::UnixDatagram::try_into 
cap_async_std::os::unix::net::UnixListener::try_into 
cap_async_std::os::unix::net::UnixStream::try_into 
cap_async_std::os::unix::net::SocketAddr::try_into 
cap_async_std::path::Component::try_into 
cap_async_std::path::Display::try_into 
cap_async_std::path::Prefix::try_into 
cap_async_std::path::PrefixComponent::try_into 
cap_async_std::path::StripPrefixError::try_into 
cap_async_std::path::Ancestors::try_into 
cap_async_std::path::Components::try_into 
cap_async_std::path::Iter::try_into 
cap_async_std::path::PathBuf::try_into 
cap_async_std::time::Duration::try_into 
cap_async_std::time::Instant::try_into 
cap_async_std::time::MonotonicClock::try_into 
cap_async_std::time::SystemClock::try_into 
cap_async_std::time::SystemTime::try_into 
cap_async_std::time::SystemTimeError::try_into 
cap_async_std::net::UdpSocket::broadcastGets the value of the SO_BROADCAST option for this socket. 
cap_async_std::fs::Metadata::from_fileConstructs a new instance of Self from the given [… 
cap_async_std::fs::Dir::hard_linkCreates a new hard link on a filesystem. 
cap_async_std::fs::Dir::open_withOpens a file at path with the options specified by self. 
cap_async_std::fs::DirEntry::open_withOpen the file with the given options. 
cap_async_std::net::UdpSocket::peer_addrReturns the socket address of the remote peer this socket … 
cap_async_std::os::unix::net::UnixDatagram::peer_addrReturns the address of this socket's peer. 
cap_async_std::os::unix::net::UnixStream::peer_addrReturns the socket address of the remote half of this … 
cap_async_std::fs::File::poll_read 
cap_async_std::net::TcpStream::poll_read 
cap_async_std::os::unix::net::UnixStream::poll_read 
cap_async_std::fs::File::poll_seek 
cap_async_std::fs::Dir::read_linkReads a symbolic link, returning the file that the link … 
cap_async_std::fs::Dir::set_times 
cap_async_std::fs::File::set_times 
cap_async_std::net::TcpListener::set_times 
cap_async_std::net::TcpStream::set_times 
cap_async_std::net::UdpSocket::set_times 
cap_async_std::os::unix::net::UnixDatagram::set_times 
cap_async_std::os::unix::net::UnixListener::set_times 
cap_async_std::os::unix::net::UnixStream::set_times 
cap_async_std::fs::Dir::create_dirCreates a new, empty directory at the provided path. 
cap_async_std::net::TcpListener::local_addrReturns the local socket address of this listener. 
cap_async_std::net::TcpStream::local_addrReturns the local socket address of this listener. 
cap_async_std::net::UdpSocket::local_addrReturns the socket address that this socket was created … 
cap_async_std::os::unix::net::UnixDatagram::local_addrReturns the address of this socket. 
cap_async_std::os::unix::net::UnixListener::local_addrReturns the local socket address of this listener. 
cap_async_std::os::unix::net::UnixStream::local_addrReturns the socket address of the local half of this … 
cap_async_std::fs::File::poll_close 
cap_async_std::net::TcpStream::poll_close 
cap_async_std::os::unix::net::UnixStream::poll_close 
cap_async_std::fs::File::poll_flush 
cap_async_std::net::TcpStream::poll_flush 
cap_async_std::os::unix::net::UnixStream::poll_flush 
cap_async_std::fs::File::poll_write 
cap_async_std::net::TcpStream::poll_write 
cap_async_std::os::unix::net::UnixStream::poll_write 
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::remove_fileRemoves a file from a filesystem. 
cap_async_std::fs::DirEntry::remove_fileRemoves the file from its filesystem. 
cap_async_std::net::TcpStream::set_nodelaySets the value of the TCP_NODELAY option on this socket. 
cap_async_std::fs::Dir::canonicalizeReturns the canonical form of a path with all … 
cap_async_std::path::Path::strip_prefixReturns a path that becomes self when joined onto base. 
cap_async_std::net::UdpSocket::set_broadcastSets the value of the SO_BROADCAST option for this socket. 
cap_async_std::fs::Dir::create_dir_allRecursively create a directory and all of its parent … 
cap_async_std::time::SystemTime::duration_sinceReturns the amount of time elapsed from another instant …