pub struct FileStream { /* private fields */ }

Implementations

Open a file from the filesystem (paths are given in the form of “/[device]/path/to/file”)
Valid devices are “cd”, “ma”, and “mb”

Allocate a new file on the memory card device given in the path string of the given size in 512-byte blocks for writing

Read file until EOF into the given string buffer

Try to read a number of bytes from the stream, returning the actual number of bytes read

Read an element from the stream, returning an error if there aren’t enough bytes in the stream or some other error occurs

Try to write a buffer of bytes to the stream, returning the actual number of bytes written

Try to seek the stream to the given position, returning the new position

Get the position within the stream

Gets whether the stream has reached its end

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.