Trait IntoRawPropertyValue

Source
pub trait IntoRawPropertyValue: AsRawPropertyValue {
    // Required method
    fn into_raw_property_value(self) -> (u64, Option<Box<dyn Any>>);
}
Expand description

Trait implemented by types that can be converted into raw property values while transferring ownership.

This is an extension of AsRawPropertyValue for situations where the recipient is taking ownership of the implementing object, so that the object can be kept live long enough to use its raw representation.

Required Methods§

Source

fn into_raw_property_value(self) -> (u64, Option<Box<dyn Any>>)

Return the raw u64 representation to send to the kernel along with an optional object that needs to be kept live in order for that raw result to remain valid.

The first result should typically be the same as would be returned from AsRawPropertyValue::as_raw_property_value.

Implementations on Foreign Types§

Source§

impl IntoRawPropertyValue for bool

Source§

impl IntoRawPropertyValue for i8

Source§

impl IntoRawPropertyValue for i16

Source§

impl IntoRawPropertyValue for i32

Source§

impl IntoRawPropertyValue for i64

Source§

impl IntoRawPropertyValue for isize

Source§

impl IntoRawPropertyValue for u8

Source§

impl IntoRawPropertyValue for u16

Source§

impl IntoRawPropertyValue for u32

Source§

impl IntoRawPropertyValue for u64

Source§

impl IntoRawPropertyValue for usize

Implementors§