Trait openthread::ot::Transparent
source · pub trait Transparent: OtCastable + Clone {
// Required methods
fn from_ot(x: Self::OtType) -> Self;
fn into_ot(self) -> Self::OtType;
}
Expand description
Trait used to indicate that the implementing type can be used by value and converted to/from the associated OpenThread type by value.
Unlike types that implement the trait [Boxable
], types implementing
this trait may be passed and used by value.
Required Methods§
Object Safety§
This trait is not object safe.