openthread::ot

Trait 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§

Source

fn from_ot(x: Self::OtType) -> Self

Creates a new instance from an instance of [Self::OtType].

Source

fn into_ot(self) -> Self::OtType

Converts this type into an instance of [Self::OtType].

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 Transparent for Ipv6Addr

Source§

fn from_ot(x: otIp6Address) -> Ipv6Addr

Source§

fn into_ot(self) -> otIp6Address

Implementors§

Source§

impl Transparent for BufferInfo

Source§

impl Transparent for Info

Source§

impl Transparent for Settings

Source§

impl Transparent for ActiveScanResult

Source§

impl Transparent for BackboneRouterMulticastListenerInfo

Source§

impl Transparent for BorderRouterConfig

Source§

impl Transparent for BorderRoutingCounters

Source§

impl Transparent for BorderRoutingPrefixTableEntry

Source§

impl Transparent for DnsTxtEntry<'_>

Source§

impl Transparent for DnsTxtEntryIterator<'_>

Source§

impl Transparent for DnssdCounters

Source§

impl Transparent for EnergyScanResult

Source§

impl Transparent for ExtAddress

Source§

impl Transparent for ExtendedPanId

Source§

impl Transparent for ExternalRouteConfig

Source§

impl Transparent for Ip4Cidr

Source§

impl Transparent for Ip6AddressInfo<'_>

Source§

impl Transparent for Ip6NetworkPrefix

Source§

impl Transparent for Ip6Prefix

Source§

impl Transparent for IpCounters

Source§

impl Transparent for LeaderData

Source§

impl Transparent for LinkMetricsValues

Source§

impl Transparent for MacCounters

Source§

impl Transparent for Nat64AddressMapping

Source§

impl Transparent for Nat64Counters

Source§

impl Transparent for Nat64ErrorCounters

Source§

impl Transparent for Nat64ProtocolCounters

Source§

impl Transparent for NeighborInfo

Source§

impl Transparent for NetifAddress

Source§

impl Transparent for NetworkKey

Source§

impl Transparent for NetworkName

Source§

impl Transparent for OperationalDataset

Source§

impl Transparent for OperationalDatasetTlvs

Source§

impl Transparent for PacketsAndBytes

Source§

impl Transparent for PdProcessedRaInfo

Source§

impl Transparent for PlatTrelPeerInfo<'_>

Source§

impl Transparent for Pskc

Source§

impl Transparent for RadioCoexMetrics

Source§

impl Transparent for RouterInfo

Source§

impl Transparent for SecurityPolicy

Source§

impl Transparent for SockAddr

Source§

impl Transparent for SrpServerLeaseInfo

Source§

impl Transparent for SrpServerResponseCounters

Source§

impl Transparent for TrelCounters

Source§

impl Transparent for UpstreamDnsCounters