morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::ConnectError Struct Reference

Why a source could not be opened. More...

#include <frontend.hpp>

Public Types

enum class  Kind : std::uint8_t {
  Unreachable , NoUiService , Unsupported , Unverified ,
  Refused
}
 What went wrong. More...

Public Attributes

Kind kind = Kind::Unreachable
 What went wrong.
std::string message
 What to tell the user, UTF-8.

Detailed Description

Why a source could not be opened.

Definition at line 108 of file frontend.hpp.

Member Enumeration Documentation

◆ Kind

enum class morph::ui::ConnectError::Kind : std::uint8_t
strong

What went wrong.

Enumerator
Unreachable 

The server could not be reached, or the connection broke during the handshake.

NoUiService 

The peer answered, but serves no UI (unknown envelope kind: ui-hello).

Unsupported 

The bundle needs a vocabulary this client does not speak; the message names it.

Unverified 

A file or the manifest did not match its digest.

Refused 

The application refused this client or this user: a sign-in, a licence, an authoriser.

Definition at line 110 of file frontend.hpp.

Member Data Documentation

◆ kind

Kind morph::ui::ConnectError::kind = Kind::Unreachable

What went wrong.

Definition at line 118 of file frontend.hpp.

◆ message

std::string morph::ui::ConnectError::message

What to tell the user, UTF-8.

Definition at line 120 of file frontend.hpp.


The documentation for this struct was generated from the following file: