Enum cglue::result::CResult [−][src]
#[repr(C)] pub enum CResult<T, E> { Ok(T), Err(E), }
Expand description
FFI safe result.
This type is not meant for general use, but rather as a last-resort conversion for type wrapping.
Typical workflow would include temporarily converting into/from CResult.
But preferred way to pass results efficiently would be to implement IntError
trait on the E
type.
Variants
Implementations
Trait Implementations
Auto Trait Implementations
impl<T, E> RefUnwindSafe for CResult<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> UnwindSafe for CResult<T, E> where
E: UnwindSafe,
T: UnwindSafe,