userver: engine::io::RwBase Class Reference
Loading...
Searching...
No Matches
engine::io::RwBase Class Reference

#include <userver/engine/io/common.hpp>

Detailed Description

Interface for readable and writable streams

Definition at line 98 of file common.hpp.

+ Inheritance diagram for engine::io::RwBase:
+ Collaboration diagram for engine::io::RwBase:

Public Member Functions

ReadableBaseGetReadableBase ()
 
WritableBaseGetWritableBase ()
 
- Public Member Functions inherited from engine::io::ReadableBase
virtual bool IsValid () const =0
 Whether the stream is valid.
 
virtual bool WaitReadable (Deadline)=0
 Suspends current task until the stream has data available.
 
virtual size_t ReadSome (void *buf, size_t len, Deadline deadline)=0
 Receives at least one byte from the stream.
 
virtual size_t ReadAll (void *buf, size_t len, Deadline deadline)=0
 
impl::ContextAccessor * TryGetContextAccessor ()
 For internal use only.
 
- Public Member Functions inherited from engine::io::WritableBase
virtual bool WaitWriteable (Deadline deadline)=0
 Suspends current task until the data is available.
 
virtual size_t WriteAll (const void *buf, size_t len, Deadline deadline)=0
 Sends exactly len bytes of buf.
 
virtual size_t WriteAll (std::initializer_list< IoData > list, Deadline deadline)
 
impl::ContextAccessor * TryGetContextAccessor ()
 For internal use only.
 

Additional Inherited Members

- Protected Member Functions inherited from engine::io::ReadableBase
void SetReadableContextAccessor (impl::ContextAccessor *ca)
 
- Protected Member Functions inherited from engine::io::WritableBase
void SetWritableContextAccessor (impl::ContextAccessor *ca)
 

Member Function Documentation

◆ GetReadableBase()

ReadableBase & engine::io::RwBase::GetReadableBase ( )
inline

Definition at line 102 of file common.hpp.

◆ GetWritableBase()

WritableBase & engine::io::RwBase::GetWritableBase ( )
inline

Definition at line 104 of file common.hpp.


The documentation for this class was generated from the following file: