Struct lorawan::maccommandcreator::LinkCheckAnsCreator
source · pub struct LinkCheckAnsCreator { /* private fields */ }
Expand description
LinkCheckAnsCreator serves for creating LinkCheckAns MacCommand.
Examples
let mut creator = lorawan::maccommandcreator::LinkCheckAnsCreator::new();
let res = creator.set_margin(253).set_gateway_count(254).build();
Implementations§
source§impl LinkCheckAnsCreator
impl LinkCheckAnsCreator
sourcepub fn set_margin(&mut self, margin: u8) -> &mut Self
pub fn set_margin(&mut self, margin: u8) -> &mut Self
Sets the margin of the LinkCheckAns to the provided value.
Argument
- margin - margin in dB. The value is relative to the demodulation floor. The value 255 is reserved.
sourcepub fn set_gateway_count(&mut self, gw_cnt: u8) -> &mut Self
pub fn set_gateway_count(&mut self, gw_cnt: u8) -> &mut Self
Sets the gateway count of the LinkCheckAns to the provided value.
Argument
- gateway_count - the number of gateways that received the LinkCheckReq.
Trait Implementations§
source§impl Debug for LinkCheckAnsCreator
impl Debug for LinkCheckAnsCreator
source§impl Default for LinkCheckAnsCreator
impl Default for LinkCheckAnsCreator
Auto Trait Implementations§
impl RefUnwindSafe for LinkCheckAnsCreator
impl Send for LinkCheckAnsCreator
impl Sync for LinkCheckAnsCreator
impl Unpin for LinkCheckAnsCreator
impl UnwindSafe for LinkCheckAnsCreator
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