JavaScript is disabled, refresh for a better experience. ambee/giterated

ambee/giterated

Git repository hosting, collaboration, and discovery for the Fediverse.

Spinning

Amber - ⁨1⁩ year ago

parent: tbd commit: ⁨1788060

⁨giterated-runtime/giterated-abi/src/result.rs⁩ - ⁨296⁩ bytes
Raw
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