mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 18:58:56 +00:00
LibIPC: Add IPCErrorOr Type alias
This commit is contained in:
parent
6b20496758
commit
50b6e74d33
Notes:
sideshowbarker
2024-07-17 16:36:44 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 50b6e74d33
Pull-request: https://github.com/SerenityOS/serenity/pull/12735
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <AK/Error.h>
|
||||||
#include <AK/NonnullRefPtrVector.h>
|
#include <AK/NonnullRefPtrVector.h>
|
||||||
#include <AK/RefCounted.h>
|
#include <AK/RefCounted.h>
|
||||||
#include <AK/RefPtr.h>
|
#include <AK/RefPtr.h>
|
||||||
|
@ -42,6 +43,9 @@ enum class ErrorCode : u32 {
|
||||||
PeerDisconnected
|
PeerDisconnected
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<typename Value>
|
||||||
|
using IPCErrorOr = ErrorOr<Value, ErrorCode>;
|
||||||
|
|
||||||
class Message {
|
class Message {
|
||||||
public:
|
public:
|
||||||
virtual ~Message() = default;
|
virtual ~Message() = default;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue