Placeholder status returned when the transport reports an unrecognised event type.
More...
#include <status.h>
|
| Type | get_type () const override |
| | Returns kUnknown.
|
| std::string | get_string () const override |
| | Returns "Unknown".
|
| template<typename T> |
| std::shared_ptr< T > | as () const |
| | Safely downcasts this status to a concrete type T.
|
Placeholder status returned when the transport reports an unrecognised event type.
Callers should check get_type() == kUnknown and skip processing.
◆ get_string()
| std::string vlink::Status::Unknown::get_string |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ get_type()
| Type vlink::Status::Unknown::get_type |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ operator<<
| VLINK_EXPORT friend std::ostream & operator<< |
( |
std::ostream & | ostream, |
|
|
const Unknown & | status ) |
|
friend |
Writes "Unknown" to ostream.
- Parameters
-
| ostream | Output stream. |
| status | This Unknown status. |
- Returns
- Reference to
ostream.
The documentation for this struct was generated from the following file: