Trait syscall_encode::api::SyscallFastApi
source · pub trait SyscallFastApi<'a, Abi>: Into<<Abi as SyscallAbi>::SyscallArgType> + From<<Abi as SyscallAbi>::SyscallArgType>where
Abi: SyscallAbi + 'a,{
type ReturnType: From<<Abi as SyscallAbi>::SyscallRetType> + Into<<Abi as SyscallAbi>::SyscallRetType>;
const NUM: <Abi as SyscallAbi>::SyscallNumType;
// Provided method
fn perform_call(self, abi: &'a Abi) -> Self::ReturnType { ... }
}
Expand description
For syscalls that need high performance, implement a much faster, but more limited and less ergonomic, encoding method that allows per-type optimizations for encoding. The perform_call executes the syscall for a value of the type implementing this trait.