Result

Type Alias Result 

Source
pub type Result<T> = FfiResult<T, Error>;
Expand description

The result type for any SDK API function.

Like a neotron_ffi::FfiResult but the error type is Error.

Aliased Type§

#[repr(C)]
pub enum Result<T> { Ok(T), Err(Error), }

Variants§

§

Ok(T)

The operation succeeded (like [core::result::Result::Ok]).

§

Err(Error)

The operation failed (like [core::result::Result::Err]).