[−][src]Struct lorawan::maccommandcreator::LinkCheckAnsCreator
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
impl LinkCheckAnsCreator
[src]
pub fn new() -> Self
[src]
Creates a new instance of the class.
pub fn build(&self) -> &[u8]
[src]
Returns the serialized version of the class as bytes.
impl LinkCheckAnsCreator
[src]
pub fn set_margin(&mut self, margin: u8) -> &mut Self
[src]
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.
pub fn set_gateway_count(&mut self, gw_cnt: u8) -> &mut Self
[src]
Sets the gateway count of the LinkCheckAns to the provided value.
Argument
- gateway_count - the number of gateways that received the LinkCheckReq.
Trait Implementations
impl Default for LinkCheckAnsCreator
[src]
impl SerializableMacCommand for LinkCheckAnsCreator
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,