#[repr(transparent)]pub struct TrelPeer(pub otTrelPeer);Expand description
This structure represents a Thread TREL Peer.
Functional equivalent of otsys::otTrelPeer.
Tuple Fields§
§0: otTrelPeerImplementations§
Source§impl TrelPeer
impl TrelPeer
Sourcepub fn ext_address(&self) -> ExtAddress
pub fn ext_address(&self) -> ExtAddress
Returns the Extended MAC Address of TREL peer.
Sourcepub fn ext_pan_id(&self) -> ExtendedPanId
pub fn ext_pan_id(&self) -> ExtendedPanId
Returns the Extended PAN Identifier of TREL peer.
Sourcepub fn sock_address(&self) -> SockAddr
pub fn sock_address(&self) -> SockAddr
Returns the IPv6 socket address of TREL peer.
Trait Implementations§
Source§impl<'a> From<&'a TrelPeer> for &'a otTrelPeer
impl<'a> From<&'a TrelPeer> for &'a otTrelPeer
Source§impl<'a> From<&'a otTrelPeer> for &'a TrelPeer
impl<'a> From<&'a otTrelPeer> for &'a TrelPeer
Source§fn from(x: &'a otTrelPeer) -> Self
fn from(x: &'a otTrelPeer) -> Self
Converts to this type from the input type.
Source§impl From<TrelPeer> for otTrelPeer
impl From<TrelPeer> for otTrelPeer
Source§impl From<otTrelPeer> for TrelPeer
impl From<otTrelPeer> for TrelPeer
Source§fn from(x: otTrelPeer) -> Self
fn from(x: otTrelPeer) -> Self
Converts to this type from the input type.
Source§impl OtCastable for TrelPeer
impl OtCastable for TrelPeer
Source§type OtType = otTrelPeer
type OtType = otTrelPeer
Original OpenThread Type.
Source§fn as_ot_ptr(&self) -> *const Self::OtType
fn as_ot_ptr(&self) -> *const Self::OtType
Returns a pointer to the underlying
Self::OtType instance.Source§fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
Returns a mutable pointer to the underlying
Self::OtType instance.Source§unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
Creates a reference from a pointer to an
Self::OtType. Read moreSource§unsafe fn mut_from_ot_mut_ptr<'a>(
ptr: *mut Self::OtType,
) -> Option<&'a mut Self>
unsafe fn mut_from_ot_mut_ptr<'a>( ptr: *mut Self::OtType, ) -> Option<&'a mut Self>
Creates a mut reference from a mut pointer to an
Self::OtType. Read moreSource§fn as_ot_ref(&self) -> &Self::OtType
fn as_ot_ref(&self) -> &Self::OtType
Returns a reference to the original OpenThread type
Self::OtType.Source§fn as_ot_mut(&mut self) -> &mut Self::OtType
fn as_ot_mut(&mut self) -> &mut Self::OtType
Returns a mutable reference to the original OpenThread type
Self::OtType.Source§fn ref_from_ot_ref(x: &Self::OtType) -> &Self
fn ref_from_ot_ref(x: &Self::OtType) -> &Self
Casts a reference to the original OpenThread type to a reference to
Self.Auto Trait Implementations§
impl Freeze for TrelPeer
impl RefUnwindSafe for TrelPeer
impl Send for TrelPeer
impl Sync for TrelPeer
impl Unpin for TrelPeer
impl UnsafeUnpin for TrelPeer
impl UnwindSafe for TrelPeer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]