pub enum Error {
Show 14 variants
Permission,
NotFound,
Io,
TooBig,
BadFd,
Fault,
Exists,
NoDevice,
IsDir,
Invalid,
TooManyFiles,
NoSpace,
NameTooLong,
Host(i32),
}Variants§
Permission
The manifest does not grant the capability (K32_ERR_PERM); the host logs a violation.
NotFound
No such file or directory (K32_ERR_NOENT).
Io
I/O error on the card or the radio (K32_ERR_IO).
TooBig
The data does not fit the buffer (K32_ERR_TOOBIG): an IR frame
longer than the buffer, whose first part was copied.
BadFd
File descriptor not open, or opened for the other direction (K32_ERR_BADF).
Fault
Pointer or length outside linear memory (K32_ERR_FAULT).
Exists
O_EXCL and the file exists (K32_ERR_EXIST).
NoDevice
No such device on this node (K32_ERR_NODEV): no card, or no display on the simulator.
IsDir
The path names a directory (K32_ERR_ISDIR).
Invalid
Bad argument: bad path or flags, oversized payload (K32_ERR_INVAL).
TooManyFiles
Four files already open, per pod or node-wide (K32_ERR_MFILE).
NoSpace
Card full (K32_ERR_NOSPC).
NameTooLong
Path longer than 96 bytes (K32_ERR_NAMETOOLONG).
Host(i32)
Any other negative code from the host.