Expand description
Runtime interface for IO-like operations.
Structs§
- Possible flags for IO operations.
Enums§
- Possible error states for IO
- Possible seek start points and offset.
Functions§
- 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. 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.
- 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.
- 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. 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.
- 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.
- Seek a file descriptor, changing the internal position.
Type Aliases§
- Type of an IO vec buffer and length.