[][src]Struct ffi_utils::result::NativeResult

pub struct NativeResult {
    pub error_code: i32,
    pub description: Option<String>,
}

A native Rust version of the FfiResult struct.

Fields

error_code: i32

Unique error code.

description: Option<String>

Error description.

Methods

impl NativeResult[src]

pub fn into_repr_c(self) -> Result<FfiResult, StringError>[src]

Construct FFI wrapper for the native Rust object, consuming self.

Trait Implementations

impl ReprC for NativeResult[src]

type C = *const FfiResult

C representation of the type.

type Error = StringError

Error type.

impl Clone for NativeResult[src]

impl Debug for NativeResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]