Type Alias fvm_sdk::SyscallResult

source ·
pub type SyscallResult<T> = Result<T, ErrorNumber>;
Expand description

SDK functions performing a syscall return a SyscallResult type, where the Error type is an ExitCode. ExitCode::Ok is translated to an Ok result, while error codes are propagated as Err(ExitCode).

Error messages don’t make it across the boundary, but are logged at the FVM level for debugging and informational purposes.

Aliased Type§

enum SyscallResult<T> {
    Ok(T),
    Err(ErrorNumber),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ErrorNumber)

Contains the error value