Expand description
Runtime interface for IO-like operations.
Structs§
Enums§
- Endpoint
Kind - Seek
From - Possible seek start points and offset.
Functions§
- twz_
rt_ fd_ pread - Read a file descriptor into a buffer, up to buf.len() bytes. On success, returns the number of bytes actually read, which may be fewer than requested.
- twz_
rt_ fd_ pread_ from - Read a file descriptor into a buffer, up to buf.len() bytes. On success, returns the number of bytes actually read, which may be fewer than requested.
- twz_
rt_ fd_ preadv - Read a file descriptor into a multiple buffers. On success, returns the number of bytes actually read, which may be fewer than requested. If offset is None, use the file descriptor’s internal position. If the file descriptor refers to a non-seekable file, and offset is Some, this function returns an error.
- twz_
rt_ fd_ pwrite - Write bytes from a buffer into a file descriptor, up to buf.len() bytes. On success, returns the number of bytes actually written, which may be fewer than requested.
- twz_
rt_ fd_ pwrite_ to - Write bytes from a buffer into a file descriptor, up to buf.len() bytes. On success, returns the number of bytes actually written, which may be fewer than requested.
- twz_
rt_ fd_ pwritev - Write multiple buffers into a file descriptor. On success, returns the number of bytes actually written, which may be fewer than requested. If offset is None, use the file descriptor’s internal position. If the file descriptor refers to a non-seekable file, and offset is Some, this function returns an error.
- twz_
rt_ fd_ seek - Seek a file descriptor, changing the internal position.
Type Aliases§
- IoSlice
- Type of an IO vec buffer and length.