ot::Message::GetLinkInfo() const method
Retrieves `ThreadLinkInfo` from the message if received over Thread radio with origin `kOriginThreadNetif`. @pram[out] aLinkInfo A reference to a `ThreadLinkInfo` to populate.
Return value
kErrorNone Successfully retrieved the link info, @p `aLinkInfo` is updated. kErrorNotFound Message origin is not `kOriginThreadNetif`.