Trait linux_unsafe::args::AsRawV

source ·
pub trait AsRawV: Copy {
    // Required methods
    fn from_raw_result(raw: V) -> Self;
    fn to_raw_arg(self) -> V;

    // Provided method
    fn raw_is_void(self) -> bool { ... }
}
Expand description

Trait implemented by types that can be used as raw system call arguments.

Required Methods§

source

fn from_raw_result(raw: V) -> Self

source

fn to_raw_arg(self) -> V

Provided Methods§

source

fn raw_is_void(self) -> bool

Determines whether this value should represent the absense of a value when used in a context where that makes sense, such as in the final argument of either crate::ioctl or crate::fcntl when the operation does not use the final argument.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AsRawV for i8

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

source§

impl AsRawV for i16

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

source§

impl AsRawV for i32

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

source§

impl AsRawV for i64

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

source§

impl AsRawV for isize

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

source§

impl AsRawV for u8

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

source§

impl AsRawV for u16

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

source§

impl AsRawV for u32

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

source§

impl AsRawV for u64

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

source§

impl AsRawV for ()

source§

impl AsRawV for usize

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

source§

impl<T> AsRawV for *const T

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

source§

impl<T> AsRawV for *mut T

source§

fn from_raw_result(raw: V) -> Self

source§

fn to_raw_arg(self) -> V

Implementors§