#[non_exhaustive]pub enum SimConnectError {
SimConnectError(i32),
SimConnectException(u32),
UnimplementedEventType(u32),
UnimplementedMessageType(i32),
ObjectAlreadyRegistered(String),
ObjectNotRegistered(String),
ObjectMismatch {
actual: String,
expected: String,
},
ConversionError(TryFromIntError),
UnexpectedError(String),
}
Expand description
SimConnect SDK error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SimConnectError(i32)
SimConnect error.
SimConnectException(u32)
SimConnect error.
UnimplementedEventType(u32)
An unimplemented event type has been received by the SDK.
UnimplementedMessageType(i32)
An unimplemented message type has been received by the SDK.
ObjectAlreadyRegistered(String)
Object already registered with the client instance.
ObjectNotRegistered(String)
Object already registered with the client instance.
ObjectMismatch
Object mismatch.
ConversionError(TryFromIntError)
Conversation error.
UnexpectedError(String)
Unexpected error.
Trait Implementations§
Source§impl Debug for SimConnectError
impl Debug for SimConnectError
Source§impl Display for SimConnectError
impl Display for SimConnectError
Source§impl Error for SimConnectError
impl Error for SimConnectError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TryFromIntError> for SimConnectError
impl From<TryFromIntError> for SimConnectError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SimConnectError
impl RefUnwindSafe for SimConnectError
impl Send for SimConnectError
impl Sync for SimConnectError
impl Unpin for SimConnectError
impl UnwindSafe for SimConnectError
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
Mutably borrows from an owned value. Read more