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§
Sourcefn into_raw_property_value(self) -> (u64, Option<Box<dyn Any>>)
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
.