#[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<ErrorCode>
pub fn from_str_name(value: &str) -> Option<ErrorCode>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl<UT> FfiConverter<UT> for ErrorCode
impl<UT> FfiConverter<UT> for ErrorCode
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: ErrorCode) -> RustBuffer
fn lower(v: ErrorCode) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<ErrorCode, Error>
fn try_lift(buf: RustBuffer) -> Result<ErrorCode, Error>
Source§impl<UT> LiftReturn<UT> for ErrorCode
impl<UT> LiftReturn<UT> for ErrorCode
Source§type ReturnType = <ErrorCode as Lift<UT>>::FfiType
type ReturnType = <ErrorCode as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(
v: <ErrorCode as LiftReturn<UT>>::ReturnType,
) -> Result<ErrorCode, Error>
fn try_lift_successful_return( v: <ErrorCode as LiftReturn<UT>>::ReturnType, ) -> Result<ErrorCode, Error>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> LowerError<UT> for ErrorCode
impl<UT> LowerError<UT> for ErrorCode
Source§fn lower_error(obj: ErrorCode) -> RustBuffer
fn lower_error(obj: ErrorCode) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for ErrorCode
impl<UT> LowerReturn<UT> for ErrorCode
Source§type ReturnType = <ErrorCode as Lower<UT>>::FfiType
type ReturnType = <ErrorCode as Lower<UT>>::FfiType
Source§fn lower_return(
v: ErrorCode,
) -> Result<<ErrorCode as LowerReturn<UT>>::ReturnType, RustCallError>
fn lower_return( v: ErrorCode, ) -> Result<<ErrorCode as LowerReturn<UT>>::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl Ord for ErrorCode
impl Ord for ErrorCode
Source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more