Enum lorawan_device::session::Session
source · pub enum Session {
Idle(Idle),
SendingData(SendingData),
WaitingForRxWindow(WaitingForRxWindow),
WaitingForRx(WaitingForRx),
}
Variants§
Idle(Idle)
SendingData(SendingData)
WaitingForRxWindow(WaitingForRxWindow)
WaitingForRx(WaitingForRx)
Implementations§
source§impl Session
impl Session
pub fn new(session: SessionKeys, region: Configuration) -> Session
pub fn get_mac(&self) -> &Mac
pub fn get_session_keys(&self) -> &SessionKeys
pub fn handle_event<R: PhyRxTx + Timings, C: CryptoFactory + Default, RNG: RngCore, const N: usize>( self, event: Event<'_, R>, shared: &mut Shared<R, RNG, N> ) -> (SuperState, Result<Response, Error<R::PhyError>>)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin 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