struct Errno
Defined at line 112 of file ../../third_party/android/platform/system/libbase/include/android-base/result.h
Errno is a wrapper class for errno(3). Use this type instead of `int` when instantiating
`Result
<T
, E>` and `Error
<E
>` template classes. This is required to distinguish errno from other
integer-based error code types like `status_t`.
Public Members
int val_
Public Methods
void Errno ()
Defined at line 113 of file ../../third_party/android/platform/system/libbase/include/android-base/result.h
void Errno (int e)
Defined at line 114 of file ../../third_party/android/platform/system/libbase/include/android-base/result.h
int value ()
Defined at line 115 of file ../../third_party/android/platform/system/libbase/include/android-base/result.h
int operator int ()
Defined at line 116 of file ../../third_party/android/platform/system/libbase/include/android-base/result.h
const char * print ()
Defined at line 117 of file ../../third_party/android/platform/system/libbase/include/android-base/result.h
template <typename E, typename = std::enable_if_t<std::is_enum_v<E>>>
E operator E ()
TODO(b/209929099): remove this conversion operator. This currently is needed to not break
existing places where error().code() is used to construct enum values.
Defined at line 124 of file ../../third_party/android/platform/system/libbase/include/android-base/result.h