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§
fn from_raw_result(raw: V) -> Self
fn to_raw_arg(self) -> V
Provided Methods§
Sourcefn raw_is_void(self) -> bool
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.