pub struct Device<R, C, RNG, const N: usize, const D: usize = 1>{ /* private fields */ }Implementations§
Source§impl<R, C, RNG, const N: usize, const D: usize> Device<R, C, RNG, N, D>
impl<R, C, RNG, const N: usize, const D: usize> Device<R, C, RNG, N, D>
pub fn new(region: Configuration, radio: R, rng: RNG) -> Device<R, C, RNG, N, D>
pub fn join(&mut self, join_mode: JoinMode) -> Result<Response, Error<R>>
pub fn get_radio(&mut self) -> &mut R
pub fn get_datarate(&mut self) -> DR
pub fn set_datarate(&mut self, datarate: DR)
pub fn ready_to_send_data(&self) -> bool
pub fn send( &mut self, data: &[u8], fport: u8, confirmed: bool, ) -> Result<Response, Error<R>>
pub fn get_fcnt_up(&self) -> Option<u32>
pub fn get_session(&self) -> Option<&Session>
pub fn set_session(&mut self, s: Session)
pub fn get_session_keys(&self) -> Option<SessionKeys>
pub fn take_downlink(&mut self) -> Option<Downlink>
pub fn handle_event( &mut self, event: Event<'_, R>, ) -> Result<Response, Error<R>>
Auto Trait Implementations§
impl<R, C, RNG, const N: usize, const D: usize> Freeze for Device<R, C, RNG, N, D>
impl<R, C, RNG, const N: usize, const D: usize> RefUnwindSafe for Device<R, C, RNG, N, D>
impl<R, C, RNG, const N: usize, const D: usize> Send for Device<R, C, RNG, N, D>
impl<R, C, RNG, const N: usize, const D: usize> Sync for Device<R, C, RNG, N, D>
impl<R, C, RNG, const N: usize, const D: usize> Unpin for Device<R, C, RNG, N, D>
impl<R, C, RNG, const N: usize, const D: usize> UnwindSafe for Device<R, C, RNG, N, D>
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