Expand description
Utilities for libc::FILE streams ‘c streams’
§Features
- Owned and borrowed c streams.
Mirroring
std::os::fd’s API. - Rusty wrappers around
libc’s stream-oriented functions.libc::fgetsbecomesgets, etc. - An
Iowrapper, which implementsiotraits.
Structs§
- BorrowedC
Stream - A borrowed
RawCStream. - BufferedC
Stream alloc - An
OwnedCStreamwith a custom buffer. - FError
- A capture of the error indicator on a
RawCStreamthroughlibc::ferror. - Io
std - A wrapper around an
AsCStreamthat implementsstd::iotraits: - OwnedC
Stream - An owned
RawCStream. Thislibc::fcloses the stream on drop. It is guaranteed that nobody else will close the stream.
Enums§
Traits§
- AsCStream
- A trait to borrow a stream from an underlying object.
- AsRawC
Stream - A trait to extract the raw stream from an underlying object.
- From
RawC Stream - A trait to express the ability to construct an object from a raw stream.
- Into
RawC Stream - A trait to express the ability to consume an object and acquire ownership of its raw stream.
Functions§
- clear_
errors - Wrapper around
libc::clearerr. - eof
- Wrapper around
libc::feof. - fileno
- Wrapper around
libc::fileno. - flush
- Wrapper around
libc::fflush. - getc
- Wrapper around
libc::fgetc. - gets
- Wrapper around
libc::fgets. - open
- Wrapper around
libc::fopen. - putc
- Wrapper around
libc::fputc. - puts
- Wrapper around
libc::fputs. - read
- Wrapper around
libc::fread. - reopen
- Wrapper around
libc::freopen. - rewind
- Wrapper around
libc::rewind. - seek
std - Wrapper around
libc::fseek. - tell
- Wrapper around
libc::ftell. - tmpfile
- ungetc
- Wrapper around
libc::ungetc. - write
- Wrapper around
libc::fwrite.
Type Aliases§
- RawC
Stream - A
libc::FILEstream.