#[repr(C)]pub struct otBorderAgentSessionInfo {
pub mPeerSockAddr: otSockAddr,
pub mIsConnected: bool,
pub mIsCommissioner: bool,
pub mLifetime: u64,
}
Expand description
Represents information about a Border Agent session.
This structure is populated by otBorderAgentGetNextSessionInfo()
during iteration over the list of sessions using
an otBorderAgentSessionIterator
.
To ensure consistent mLifetime
calculations, the iterator’s initialization time is stored within the iterator,
and each session’s mLifetime
is calculated relative to this time.
Fields§
§mPeerSockAddr: otSockAddr
< Socket address (IPv6 address and port number) of session peer.
mIsConnected: bool
< Indicates whether the session is connected.
mIsCommissioner: bool
< Indicates whether the session is accepted as full commissioner.
mLifetime: u64
< Milliseconds since the session was first established.
Trait Implementations§
Source§impl Clone for otBorderAgentSessionInfo
impl Clone for otBorderAgentSessionInfo
Source§fn clone(&self) -> otBorderAgentSessionInfo
fn clone(&self) -> otBorderAgentSessionInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for otBorderAgentSessionInfo
impl Default for otBorderAgentSessionInfo
impl Copy for otBorderAgentSessionInfo
Auto Trait Implementations§
impl Freeze for otBorderAgentSessionInfo
impl RefUnwindSafe for otBorderAgentSessionInfo
impl Send for otBorderAgentSessionInfo
impl Sync for otBorderAgentSessionInfo
impl Unpin for otBorderAgentSessionInfo
impl UnwindSafe for otBorderAgentSessionInfo
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