Linux-specific fs notification API.
Definition in file inotify.hpp.
Go to the source code of this file.
#include <sys/inotify.h>
#include <optional>
#include <queue>
#include <string>
#include <unordered_map>
#include <userver/engine/io/fd_poller.hpp>
#include <userver/logging/fwd.hpp>
#include <userver/utils/flags.hpp>
Classes | |
struct | engine::io::sys_linux::Event |
Notification event. More... | |
class | engine::io::sys_linux::Inotify |
File descriptor that allows one to monitor filesystem events, such as file creation, modification, etc. More... | |
Namespaces | |
namespace | engine |
Asynchronous engine primitives. | |
namespace | engine::io |
Low-level asynchronous I/O interfaces. | |
Typedefs | |
using | engine::io::sys_linux::EventTypeMask = utils::Flags<EventType> |
A set of notification event types. | |
Enumerations | |
enum class | engine::io::sys_linux::EventType { kNone = 0 , kAccess = IN_ACCESS , kAttribChanged = IN_ATTRIB , kCloseWrite = IN_CLOSE_WRITE , kCloseNoWrite = IN_CLOSE_NOWRITE , kCreate = IN_CREATE , kDelete = IN_DELETE , kDeleteSelf = IN_DELETE_SELF , kModify = IN_MODIFY , kMoveSelf = IN_MOVE_SELF , kMovedFrom = IN_MOVED_FROM , kMovedTo = IN_MOVED_TO , kOpen = IN_OPEN , kIsDir = IN_ISDIR , kOnlyDir = IN_ONLYDIR } |
Notification event type. More... | |
Functions | |
std::string | engine::io::sys_linux::ToString (EventType) |
std::string | engine::io::sys_linux::ToString (EventTypeMask) |
logging::LogHelper & | engine::io::sys_linux::operator<< (logging::LogHelper &lh, const Event &event) noexcept |
using engine::io::sys_linux::EventTypeMask = utils::Flags<EventType> |
A set of notification event types.
Definition at line 46 of file inotify.hpp.
|
strong |
Notification event type.
Definition at line 24 of file inotify.hpp.