constexpr std::string_view ToString(Status status) noexcept
Enumerator name of status.
Definition typedefs.hxx:205
Status
Whether the Bridge worker is pumping.
Definition typedefs.hxx:185
@ Started
Worker may pull when there is room.
@ Paused
Worker does not pull. Ctor if high_water is 0.
Operation
Verbs for StormByte::Buffer::Bridge::Drainer.
Definition typedefs.hxx:195
@ Flush
Push what is already held. No destination flush.
@ Toggle
Started ↔ Paused.
Location
Where the bytes of a file-like source or sink live.
Definition typedefs.hxx:140
@ Local
Path is a filesystem path on this machine.
@ Remote
Path names a non-local target.
Status
Outcome of a single I/O call.
Definition typedefs.hxx:72
@ End
Origin exhausted; Result::count may be short.
@ Error
Origin failed during the call; buffers untouched.
@ Ok
The call completed as requested (see Result::count).
@ Failed
Illegal call or dead session; buffers untouched.
@ TryAgain
Not accepted; buffers untouched. State stays Idle.
State
Session state of a coordinated reader or writer.
Definition typedefs.hxx:86
@ Missing
Last Open: path or parent does not exist.
@ Fault
Origin I/O error mid-transfer.
@ Unavailable
Ctor, after Close, or origin gone.
@ Directory
Last Open: path is a directory.
@ NotWritable
Last Open or mid-write: cannot write.
@ Permission
Last Open: exists; read open denied.
constexpr std::string_view ToString(Status status) noexcept
Enumerator name of status.
Definition typedefs.hxx:101
Root namespace of the StormByte C++ suite.
Per-call status plus how many bytes this call transferred.
Definition typedefs.hxx:168
Status status
Outcome of the call.
Definition typedefs.hxx:169
StormByte::ByteSize count
Bytes transferred this call.
Definition typedefs.hxx:170
#define STORMBYTE_BUFFER_PUBLIC
Definition visibility.h:54