Skip to main content

OriginError

Enum OriginError 

Source
#[repr(i32)]
pub enum OriginError {
Show 81 variants Success = 0, Pending = 1, General = -1, InvalidHandle = -1_593_835_520, OutOfMemory = -1_610_612_735, NotImplemented = -1_593_835_518, InvalidUser = -1_577_058_301, InvalidArgument = -1_577_058_300, NoCallbackSpecified = -1_577_058_299, BufferTooSmall = -1_577_058_298, TooManyValuesInList = -1_577_058_297, NotFound = -1_577_058_296, InvalidPersona = -1_577_058_295, NoNetwork = -1_577_058_294, NoService = -1_577_058_293, NotLoggedIn = -1_577_058_292, MandatoryOriginUpdatePending = -1_577_058_291, AccountInUse = -1_577_058_290, TooManyInstances = -1_593_835_505, AlreadyExists = -1_560_281_072, InvalidOperation = -1_577_058_287, AgeRestricted = -1_577_058_286, Banned = -1_577_058_285, NotReady = -1_577_058_284, SdkNotInitialized = -1_610_547_200, SdkInvalidAllocatorDeallocatorCombination = -1_593_769_983, SdkIsRunning = -1_576_992_766, SdkNotAllResourcesReleased = -1_560_215_549, SdkInvalidResource = -1_576_992_764, SdkInternalError = -1_593_769_979, SdkInternalBufferTooSmall = -1_593_769_978, WarningSdkAlreadyInitialized = 1_107_361_793, WarningSdkStillRunning = 1_107_361_794, WarningSdkEnumeratorInUse = 1_107_361_795, WarningSdkEnumeratorTerminated = 1_107_361_796, CoreNotloaded = -1_610_481_664, CoreLoginFailed = -1_593_704_447, CoreAuthenticationFailed = -1_593_704_446, CoreSendFailed = -1_593_704_444, CoreReceiveFailed = -1_593_704_443, CoreResourceNotFound = -1_593_704_442, CoreIncompatibleVersion = -1_610_481_657, CoreNotInstalled = -1_610_481_656, WarningIgoNotloaded = 1_090_715_648, WarningIgoSupportNotloaded = 1_090_715_649, IgoIllegalAnchorPoint = -1_560_084_478, IgoIllegalDockPoint = -1_560_084_477, IgoNotAvailable = -1_560_084_476, NoMultiplayerId = -1_576_730_624, LsxInvalidResponse = -1_576_534_016, LsxNoResponse = -1_593_311_231, LsxInvalidRequest = -1_576_534_014, CommerceNoSuchStore = -1_593_442_304, CommerceNoSuchCatalog = -1_593_442_303, CommerceInvalidReply = -1_593_442_302, CommerceNoCategories = -1_576_665_085, CommerceNoProducts = -1_576_665_084, CommerceUnderageUser = -1_576_665_083, CommerceDeprecatedStore = -1_576_665_082, Proxy = -1_576_468_480, SuccessProxyOk = 1_141_440_712, SuccessProxyCreated = 1_141_440_713, SuccessProxyAccepted = 1_141_440_714, SuccessProxyNonAuthInfo = 1_141_440_715, SuccessProxyNoContent = 1_141_440_716, SuccessResetContent = 1_141_440_717, SuccessPartialContent = 1_141_440_718, ProxyBadRequest = -1_576_468_080, ProxyUnauthorized = -1_576_468_079, ProxyPaymentRequired = -1_576_468_078, ProxyForbidden = -1_576_468_077, ProxyNotFound = -1_576_468_076, ProxyMethodNotAllowed = -1_576_468_075, ProxyNotAcceptable = -1_576_468_074, ProxyRequestTimeout = -1_576_468_072, ProxyConflict = -1_576_468_071, ProxyInternalError = -1_576_467_980, ProxyNotImplemented = -1_576_467_979, ProxyBadGateway = -1_576_467_978, ProxyServiceUnavailable = -1_576_467_977, ProxyGatewayTimeout = -1_576_467_976,
}

Variants§

§

Success = 0

§

Pending = 1

§

General = -1

§

InvalidHandle = -1_593_835_520

§

OutOfMemory = -1_610_612_735

§

NotImplemented = -1_593_835_518

§

InvalidUser = -1_577_058_301

§

InvalidArgument = -1_577_058_300

§

NoCallbackSpecified = -1_577_058_299

§

BufferTooSmall = -1_577_058_298

§

TooManyValuesInList = -1_577_058_297

§

NotFound = -1_577_058_296

§

InvalidPersona = -1_577_058_295

§

NoNetwork = -1_577_058_294

§

NoService = -1_577_058_293

§

NotLoggedIn = -1_577_058_292

§

MandatoryOriginUpdatePending = -1_577_058_291

§

AccountInUse = -1_577_058_290

§

TooManyInstances = -1_593_835_505

§

AlreadyExists = -1_560_281_072

§

InvalidOperation = -1_577_058_287

§

AgeRestricted = -1_577_058_286

§

Banned = -1_577_058_285

§

NotReady = -1_577_058_284

§

SdkNotInitialized = -1_610_547_200

§

SdkInvalidAllocatorDeallocatorCombination = -1_593_769_983

§

SdkIsRunning = -1_576_992_766

§

SdkNotAllResourcesReleased = -1_560_215_549

§

SdkInvalidResource = -1_576_992_764

§

SdkInternalError = -1_593_769_979

§

SdkInternalBufferTooSmall = -1_593_769_978

§

WarningSdkAlreadyInitialized = 1_107_361_793

§

WarningSdkStillRunning = 1_107_361_794

§

WarningSdkEnumeratorInUse = 1_107_361_795

§

WarningSdkEnumeratorTerminated = 1_107_361_796

§

CoreNotloaded = -1_610_481_664

§

CoreLoginFailed = -1_593_704_447

§

CoreAuthenticationFailed = -1_593_704_446

§

CoreSendFailed = -1_593_704_444

§

CoreReceiveFailed = -1_593_704_443

§

CoreResourceNotFound = -1_593_704_442

§

CoreIncompatibleVersion = -1_610_481_657

§

CoreNotInstalled = -1_610_481_656

§

WarningIgoNotloaded = 1_090_715_648

§

WarningIgoSupportNotloaded = 1_090_715_649

§

IgoIllegalAnchorPoint = -1_560_084_478

§

IgoIllegalDockPoint = -1_560_084_477

§

IgoNotAvailable = -1_560_084_476

§

NoMultiplayerId = -1_576_730_624

§

LsxInvalidResponse = -1_576_534_016

§

LsxNoResponse = -1_593_311_231

§

LsxInvalidRequest = -1_576_534_014

§

CommerceNoSuchStore = -1_593_442_304

§

CommerceNoSuchCatalog = -1_593_442_303

§

CommerceInvalidReply = -1_593_442_302

§

CommerceNoCategories = -1_576_665_085

§

CommerceNoProducts = -1_576_665_084

§

CommerceUnderageUser = -1_576_665_083

§

CommerceDeprecatedStore = -1_576_665_082

§

Proxy = -1_576_468_480

§

SuccessProxyOk = 1_141_440_712

§

SuccessProxyCreated = 1_141_440_713

§

SuccessProxyAccepted = 1_141_440_714

§

SuccessProxyNonAuthInfo = 1_141_440_715

§

SuccessProxyNoContent = 1_141_440_716

§

SuccessResetContent = 1_141_440_717

§

SuccessPartialContent = 1_141_440_718

§

ProxyBadRequest = -1_576_468_080

§

ProxyUnauthorized = -1_576_468_079

§

ProxyPaymentRequired = -1_576_468_078

§

ProxyForbidden = -1_576_468_077

§

ProxyNotFound = -1_576_468_076

§

ProxyMethodNotAllowed = -1_576_468_075

§

ProxyNotAcceptable = -1_576_468_074

§

ProxyRequestTimeout = -1_576_468_072

§

ProxyConflict = -1_576_468_071

§

ProxyInternalError = -1_576_467_980

§

ProxyNotImplemented = -1_576_467_979

§

ProxyBadGateway = -1_576_467_978

§

ProxyServiceUnavailable = -1_576_467_977

§

ProxyGatewayTimeout = -1_576_467_976

Implementations§

Source§

impl OriginError

Source

pub const fn is_success(&self) -> bool

Returns true if this is a success code (0) or pending (1)

Source

pub const fn is_warning(&self) -> bool

Returns true if this is a warning

Source

pub const fn is_error(&self) -> bool

Returns true if this is an error

Source

pub fn error_area(&self) -> Option<ErrorArea>

Extract the error area from the error code

Source

pub fn error_level(&self) -> Option<ErrorLevel>

Extract the error level from the error code

Source

pub const fn error_code(&self) -> i32

Extract the specific error code within the area

Trait Implementations§

Source§

impl Clone for OriginError

Source§

fn clone(&self) -> OriginError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for OriginError

Source§

impl Debug for OriginError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for OriginError

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for OriginError

Source§

impl PartialEq for OriginError

Source§

fn eq(&self, other: &OriginError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for OriginError

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for OriginError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more