1#ifndef LIBFILEZILLA_FSRESULT_HEADER
2#define LIBFILEZILLA_FSRESULT_HEADER
8#include "private/visibility.hpp"
55 typedef uint32_t raw_t;
60 explicit operator bool()
const {
return error_ == 0; }
80 typedef uint32_t raw_t;
103 explicit rwresult(error e, raw_t raw)
108 explicit rwresult(
size_t value)
112 explicit operator bool()
const {
return error_ == 0; }
Small class to return filesystem errors.
Definition fsresult.hpp:26
error
Definition fsresult.hpp:28
@ noperm
Permission denied.
Definition fsresult.hpp:36
@ nofile
Requested file does not exist or is not a file.
Definition fsresult.hpp:39
@ resource_limit
Dynamic resource utilization, like too many open files.
Definition fsresult.hpp:48
@ invalid
Invalid arguments, syntax error.
Definition fsresult.hpp:33
@ nospace
Out of disk space (physical, or space quota)
Definition fsresult.hpp:45
@ nodir
Requested dir does not exist or is not a dir.
Definition fsresult.hpp:42
Holds the result of read/write operations.
Definition fsresult.hpp:77
raw_t raw_
Undefined if error_ is none.
Definition fsresult.hpp:118
error
Definition fsresult.hpp:85
@ wouldblock
The operation would have blocked, but the file descriptor is marked non-blocking.
Definition fsresult.hpp:95
@ invalid
Invalid arguments, syntax error.
Definition fsresult.hpp:89
@ nospace
Out of disk space.
Definition fsresult.hpp:92
@ error
Error messages aimed at the user.
Definition logger.hpp:21
The namespace used by libfilezilla.
Definition apply.hpp:17