Skip to main content

ToSyscallU64

Trait ToSyscallU64 

Source
pub trait ToSyscallU64 {
    // Required method
    fn as_syscall_u64(&self) -> u64;
}
Expand description

A trait to convert the implementing type to a valid syscall result u64

Required Methods§

Source

fn as_syscall_u64(&self) -> u64

Convert the given self into a u64

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToSyscallU64 for ()

Source§

fn as_syscall_u64(&self) -> u64

Always returns 0u64

Implementors§