Trait FromIoctlResult

Source
pub trait FromIoctlResult<Raw> {
    // Required method
    fn from_ioctl_result(raw: &Raw) -> Self;
}
Expand description

Trait for types that can be constructed automatically from ioctl results from requests with a given argument type and temporary value type.

Required Methods§

Source

fn from_ioctl_result(raw: &Raw) -> Self

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.

Implementations on Foreign Types§

Source§

impl FromIoctlResult<i32> for int

Source§

fn from_ioctl_result(raw: &int) -> Self

Implementors§

Source§

impl<Device: IoDevice> FromIoctlResult<i32> for File<Device>