pub fn new(removed: bool, txt: &[u8], sockaddr: ot::SockAddr) -> PlatTrelPeerInfo<'_> {
        PlatTrelPeerInfo::from_ot(otPlatTrelPeerInfo {
            mRemoved: removed,
            mTxtData: txt.as_ptr(),
            mTxtLength: txt.len().try_into().unwrap(),
            mSockAddr: sockaddr.into_ot(),
        })
    }
/// Creates a new instance of `PlatTrelPeerInfo`.
Creates a new instance of `PlatTrelPeerInfo`.
Creates a new instance of ` PlatTrelPeerInfo ` .
pub fn new(removed: bool, txt: &[u8], sockaddr: ot::SockAddr) -> PlatTrelPeerInfo<'_> {
        PlatTrelPeerInfo::from_ot(otPlatTrelPeerInfo {
            mRemoved: removed,
            mTxtData: txt.as_ptr(),
            mTxtLength: txt.len().try_into().unwrap(),
            mSockAddr: sockaddr.into_ot(),
        })
    }
pub fn new ( removed : bool , txt : & [ u8 ] , sockaddr : ot :: SockAddr ) -> PlatTrelPeerInfo < ' _ > { PlatTrelPeerInfo :: from_ot ( otPlatTrelPeerInfo { mRemoved : removed , mTxtData : txt . as_ptr ( ) , mTxtLength : txt . len ( ) . try_into ( ) . unwrap ( ) , mSockAddr : sockaddr . into_ot ( ) , } ) }
Creates a new instance of `PlatTrelPeerInfo`.
Creates a new instance of ` PlatTrelPeerInfo ` .
removed
bool
txt
&[u8]
sockaddr
ot::SockAddr
removed
bool
txt
&[u8]
sockaddr
ot::SockAddr