Module syscall_encode::api

source ·

Modules

Traits

  • Use this encodable type as a front-facing Syscall API. It will have a defined number, return, and error type. Once implemented, one may call the auto implemented perform_call function on a value of the type implementing this trait.
  • Indicates that a type may be encoded using an encoder, and implements the method for encoding. May be derived.
  • 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.