#include <userver/engine/io/pipe.hpp>
Public Member Functions | |
| bool | IsValid () const override |
| Whether the reading end of the pipe is valid. | |
| bool | WaitReadable (Deadline) override |
| size_t | ReadSome (void *buf, size_t len, Deadline deadline) override |
| size_t | ReadAll (void *buf, size_t len, Deadline deadline) override |
| int | Fd () const |
| File descriptor corresponding to the read end of the pipe. | |
| int | Release () noexcept |
| Releases reading end file descriptor and invalidates it. | |
| void | Close () |
| virtual std::optional< size_t > | ReadNoblock (void *buf, size_t len) |
| AwaitableToken | GetAwaitableToken () |
| Satisfies engine::Awaitable, for use with engine::WaitAnyContext and friends. | |
Protected Member Functions | |
| void | SetReadableAwaitableToken (AwaitableToken token) |
| void engine::io::PipeReader::Close | ( | ) |
Closes and invalidates the reading end of the pipe.
|
inlineinherited |
Satisfies engine::Awaitable, for use with engine::WaitAnyContext and friends.
Definition at line 39 of file common.hpp.
|
overridevirtual |
Whether the reading end of the pipe is valid.
Implements engine::io::ReadableBase.
|
nodiscardoverridevirtual |
Receives exactly len bytes from the pipe.
Implements engine::io::ReadableBase.
|
inlinenodiscardvirtualinherited |
Receives up to len (including zero) bytes from the stream.
Reimplemented in engine::io::Socket, and engine::io::TlsWrapper.
Definition at line 65 of file common.hpp.
|
nodiscardoverridevirtual |
Receives at least one bytes from the pipe.
Implements engine::io::ReadableBase.
|
inlineprotectedinherited |
Definition at line 44 of file common.hpp.
|
nodiscardoverridevirtual |
Suspends current task until the pipe has data available.
Implements engine::io::ReadAwaiter.