mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
LibIPC: Add IPCErrorOr Type alias
This commit is contained in:
parent
6b20496758
commit
50b6e74d33
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Error.h>
|
||||
#include <AK/NonnullRefPtrVector.h>
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/RefPtr.h>
|
||||
|
@ -42,6 +43,9 @@ enum class ErrorCode : u32 {
|
|||
PeerDisconnected
|
||||
};
|
||||
|
||||
template<typename Value>
|
||||
using IPCErrorOr = ErrorOr<Value, ErrorCode>;
|
||||
|
||||
class Message {
|
||||
public:
|
||||
virtual ~Message() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue