pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub fn new( id: u32, msg_ctr: u32, reserved: bool, peer_addr: Address, peer_nodeid: Option<u64>, peer_active_interval_ms: u32, peer_idle_interval_ms: u32, peer_active_threshold_ms: u16, ) -> Session
pub fn init( id: u32, msg_ctr: u32, reserved: bool, peer_addr: Address, peer_nodeid: Option<u64>, peer_active_interval_ms: u32, peer_idle_interval_ms: u32, peer_active_threshold_ms: u16, ) -> impl Init<Session>
Sourcepub const fn id(&self) -> u32
pub const fn id(&self) -> u32
Get the internal ID of the session This ID is guaranteed to be unique across all sessions
pub fn get_local_sess_id(&self) -> u16
pub fn get_peer_sess_id(&self) -> u16
pub fn get_peer_addr(&self) -> Address
pub fn is_encrypted(&self) -> bool
pub fn get_peer_node_id(&self) -> Option<u64>
pub fn get_local_fabric_idx(&self) -> u8
pub fn get_session_mode(&self) -> &SessionMode
pub fn get_peer_active_interval_ms(&self) -> u32
pub fn get_peer_idle_interval_ms(&self) -> u32
pub fn get_peer_active_threshold_ms(&self) -> u16
pub fn get_dec_key( &self, ) -> Option<CryptoSensitiveRef<'_, rs_matter::::crypto::canon::CanonAeadKeyRef::{constant#0}>>
pub fn get_enc_key( &self, ) -> Option<CryptoSensitiveRef<'_, rs_matter::::crypto::canon::CanonAeadKeyRef::{constant#0}>>
pub fn get_att_challenge( &self, ) -> Option<CryptoSensitiveRef<'_, rs_matter::::transport::session::AttChallengeRef::{constant#0}>>
pub fn upgrade_fabric_idx( &mut self, fabric_idx: NonZero<u8>, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
Source§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.