[−][src]Struct lorawan::maccommandcreator::NewChannelAnsCreator
NewChannelAnsCreator serves for creating NewChannelAns MacCommand.
Examples
let mut creator = lorawan::maccommandcreator::NewChannelAnsCreator::new(); let res = creator .set_channel_frequency_ack(true) .set_data_rate_range_ack(true) .build();
Implementations
impl NewChannelAnsCreator
[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 NewChannelAnsCreator
[src]
pub fn set_channel_frequency_ack(&mut self, ack: bool) -> &mut Self
[src]
Sets the channel frequency acknowledgement of the NewChannelAns to the provided value.
Argument
- ack - true meaning that the channel frequency was acceptable or false otherwise.
pub fn set_data_rate_range_ack(&mut self, ack: bool) -> &mut Self
[src]
Sets the data rate range acknowledgement of the NewChannelAns to the provided value.
Argument
- ack - true meaning that the data rate range was acceptable or false otherwise.
Trait Implementations
impl Default for NewChannelAnsCreator
[src]
impl SerializableMacCommand for NewChannelAnsCreator
[src]
Auto Trait Implementations
impl RefUnwindSafe for NewChannelAnsCreator
impl Send for NewChannelAnsCreator
impl Sync for NewChannelAnsCreator
impl Unpin for NewChannelAnsCreator
impl UnwindSafe for NewChannelAnsCreator
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>,