[−][src]Struct lorawan::maccommandcreator::RXParamSetupReqCreator
RXParamSetupReqCreator serves for creating RXParamSetupReq MacCommand.
Examples
let mut creator = lorawan::maccommandcreator::RXParamSetupReqCreator::new(); let res = creator .set_dl_settings(0xcd) .set_frequency(&[0x12, 0x34, 0x56]) .build();
Implementations
impl RXParamSetupReqCreator
[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 RXParamSetupReqCreator
[src]
pub fn set_dl_settings<T: Into<DLSettings>>(
&mut self,
dl_settings: T
) -> &mut Self
[src]
&mut self,
dl_settings: T
) -> &mut Self
Sets the DLSettings of the RXParamSetupReq to the provided value.
Argument
- dl_settings - instance of maccommands::DLSettings or anything that can be converted into it.
pub fn set_frequency<'a, T: Into<Frequency<'a>>>(
&mut self,
frequency: T
) -> &mut Self
[src]
&mut self,
frequency: T
) -> &mut Self
Sets the frequency of the RXParamSetupReq to the provided value.
Argument
- frequency - instance of maccommands::Frequency or anything that can be converted into it.
Trait Implementations
impl Default for RXParamSetupReqCreator
[src]
impl SerializableMacCommand for RXParamSetupReqCreator
[src]
Auto Trait Implementations
impl RefUnwindSafe for RXParamSetupReqCreator
impl Send for RXParamSetupReqCreator
impl Sync for RXParamSetupReqCreator
impl Unpin for RXParamSetupReqCreator
impl UnwindSafe for RXParamSetupReqCreator
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>,