1 |
use giterated_models::error::OperationError;
|
2 |
|
3 |
use crate::FfiSlice;
|
4 |
|
5 |
#[repr(C)]
|
6 |
pub enum FfiResult<T, E> {
|
7 |
Ok(T),
|
8 |
Err(E),
|
9 |
}
|
10 |
|
11 |
#[repr(C)]
|
12 |
pub struct FfiError {
|
13 |
last_error: FfiSlice<str>,
|
14 |
}
|
15 |
|
16 |
impl FfiError {
|
17 |
pub fn into_internal<T>(self) -> OperationError<T> {
|
18 |
todo!()
|
19 |
}
|
20 |
}
|
21 |
|