Add fatal failure checking method to Backend
The method allows the caller to check whether the backend has suffered a fatal failure.
This commit is contained in:
@ -241,3 +241,8 @@ bool Backend::is_closed() const
|
||||
{
|
||||
return m_state & CLOSED;
|
||||
}
|
||||
|
||||
bool Backend::has_failed() const
|
||||
{
|
||||
return m_state & FATAL_FAILURE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user