Stream shutdown request type. More...
#include "request-stream.hpp"
Public Types | |
using | uv_t = ::uv_shutdown_t |
using | on_request_t = std::function< void(shutdown _request) > |
The function type of the callback called after shutdown is done. More... | |
Public Types inherited from uv::request | |
using | uv_t = ::uv_req_t |
using | on_destroy_t = std::function< void(void *_data) > |
The function type of the callback called when the request object is about to be destroyed. | |
Public Member Functions | |
shutdown (const shutdown &)=default | |
shutdown & | operator= (const shutdown &)=default |
shutdown (shutdown &&) noexcept=default | |
shutdown & | operator= (shutdown &&) noexcept=default |
on_request_t & | on_request () const noexcept |
stream | handle () const noexcept |
The stream which this shutdown request has been running on. | |
int | run (stream &_stream) |
Run the request. | |
operator const uv_t * () const noexcept | |
operator uv_t * () noexcept | |
Public Member Functions inherited from uv::request | |
request (const request &_that) | |
request & | operator= (const request &_that) |
request (request &&_that) noexcept | |
request & | operator= (request &&_that) noexcept |
void | swap (request &_that) noexcept |
std::uintptr_t | id () const noexcept |
long | nrefs () const noexcept |
The current number of existing references to the same object as this request variable refers to. | |
int | uv_status () const noexcept |
The status value returned by the last executed libuv API function on this request. | |
on_destroy_t & | on_destroy () const noexcept |
::uv_req_type | type () const noexcept |
The tag indicating a libuv type of the request. More... | |
const char * | type_name () const noexcept |
A string containing the name of the request type. | |
void *const & | data () const noexcept |
The pointer to the user-defined arbitrary data. libuv and uvcc does not use this field. | |
void *& | data () noexcept |
int | cancel () noexcept |
Cancel a pending request. More... | |
operator const uv_t * () const noexcept | |
operator uv_t * () noexcept | |
operator bool () const noexcept | |
Equivalent to (uv_status() >= 0) . | |
Stream shutdown request type.
uv_stream_t
— Stream handle. Definition at line 294 of file request-stream.hpp.
using uv::shutdown::on_request_t = std::function< void(shutdown _request) > |
The function type of the callback called after shutdown is done.
uv_shutdown_cb
. Definition at line 304 of file request-stream.hpp.