1#ifndef LIBFILEZILLA_FSRESULT_HEADER
2#define LIBFILEZILLA_FSRESULT_HEADER
8#include "private/visibility.hpp"
62 typedef uint32_t raw_t;
67 explicit operator bool()
const {
return error_ == 0; }
83class FZ_PUBLIC_SYMBOL rwresult final
87 typedef uint32_t raw_t;
110 explicit rwresult(error e, raw_t raw)
114 explicit rwresult(error e) =
delete;
116 explicit rwresult(
size_t value)
120 explicit operator bool()
const {
return error_ == 0; }
Small class to return filesystem errors.
Definition fsresult.hpp:26
error
Filesystem operation result categories; raw_ retains the native error when available.
Definition fsresult.hpp:29
@ noperm
Permission denied.
Definition fsresult.hpp:37
@ preexisting
File already exists when asked to explicitly create a new file.
Definition fsresult.hpp:52
@ cross_device
Operation cannot cross filesystem boundaries.
Definition fsresult.hpp:55
@ nofile
Requested file does not exist or is not a file.
Definition fsresult.hpp:40
@ other
Some other error.
Definition fsresult.hpp:58
@ resource_limit
Dynamic resource utilization, like too many open files.
Definition fsresult.hpp:49
@ invalid
Invalid arguments, syntax error.
Definition fsresult.hpp:34
@ nospace
Out of disk space (physical, or space quota).
Definition fsresult.hpp:46
@ nodir
Requested dir does not exist or is not a dir.
Definition fsresult.hpp:43
Holds the result of read/write operations.
Definition fsresult.hpp:84
error
Definition fsresult.hpp:92
@ other
Some other error.
Definition fsresult.hpp:105
@ wouldblock
The operation would have blocked, but the file descriptor is marked non-blocking.
Definition fsresult.hpp:102
@ invalid
Invalid arguments, syntax error.
Definition fsresult.hpp:96
@ nospace
Out of disk space.
Definition fsresult.hpp:99
@ error
Error messages aimed at the user.
Definition logger.hpp:21
The namespace used by libfilezilla.
Definition apply.hpp:17
raw_t raw_
Undefined if error_ is none.
size_t value_
Undefined if error_ is not none.