#[repr(i32)]pub enum ErrorCode {
Show 22 variants
ErrorUnknown = 0,
ErrorServer = 10,
ErrorProtocol = 20,
ErrorProtocolUnexpectedMessage = 21,
ErrorProtocolIncorrectStream = 22,
ErrorProtocolUnknownMessageType = 23,
ErrorTimeout = 24,
ErrorApplicationNotFound = 25,
ErrorApplicationNoImage = 26,
ErrorSessionLaunchFailed = 30,
ErrorSessionLaunchRefused = 31,
ErrorSessionUpdateFailed = 32,
ErrorAttachmentRefused = 40,
ErrorAttachmentParamsNotSupported = 41,
ErrorSessionEnded = 50,
ErrorSessionEndedByClient = 51,
ErrorSessionEndedApplicationExit = 52,
ErrorSessionNotFound = 60,
ErrorSessionInvalidState = 61,
ErrorSessionParamsNotSupported = 62,
ErrorAuthenticationFailed = 100,
ErrorNotAllowed = 101,
}
Variants§
ErrorUnknown = 0
ErrorServer = 10
Used to indicate an unrecoverable error on the server.
ErrorProtocol = 20
Used to indicate a protocol violation.
ErrorProtocolUnexpectedMessage = 21
ErrorProtocolIncorrectStream = 22
ErrorProtocolUnknownMessageType = 23
ErrorTimeout = 24
ErrorApplicationNotFound = 25
ErrorApplicationNoImage = 26
ErrorSessionLaunchFailed = 30
Used to indicate that the server refuses to launch a session.
ErrorSessionLaunchRefused = 31
ErrorSessionUpdateFailed = 32
Used to indicate the session update couldn’t be applied.
ErrorAttachmentRefused = 40
Used to indicate that the server refuses to allow the client to attach to the session.
ErrorAttachmentParamsNotSupported = 41
ErrorSessionEnded = 50
Used to indicate that the session has ended.
ErrorSessionEndedByClient = 51
ErrorSessionEndedApplicationExit = 52
ErrorSessionNotFound = 60
Used for several session operations.
ErrorSessionInvalidState = 61
ErrorSessionParamsNotSupported = 62
ErrorAuthenticationFailed = 100
Used to indicate a failed authentication attempt or ignored challenge.
ErrorNotAllowed = 101
Used to indicate missing or insufficient credentials on another request.
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.