Enum simconnect_sdk::SimConnectError
source · [−]#[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
sourceimpl Debug for SimConnectError
impl Debug for SimConnectError
sourceimpl Display for SimConnectError
impl Display for SimConnectError
sourceimpl Error for SimConnectError
impl Error for SimConnectError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<TryFromIntError> for SimConnectError
impl From<TryFromIntError> for SimConnectError
sourcefn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for SimConnectError
impl Send for SimConnectError
impl Sync for SimConnectError
impl Unpin for SimConnectError
impl UnwindSafe for SimConnectError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more