shadow_rs::host::syscall::types

Type Alias SyscallResult

source
pub type SyscallResult = Result<SyscallReg, SyscallError>;

Aliased Type§

enum SyscallResult {
    Ok(SyscallReg),
    Err(SyscallError),
}

Variants§

§1.0.0

Ok(SyscallReg)

Contains the success value

§1.0.0

Err(SyscallError)

Contains the error value

Trait Implementations§

source§

impl From<SyscallReturn> for SyscallResult

source§

fn from(r: SyscallReturn) -> Self

Converts to this type from the input type.