pub struct Downlink<'a> { /* private fields */ }Expand description
A downlink data frame to encode, built up from the fields a sender sets.
Construct one with new and turn on whatever applies; the rest
default off.
Implementations§
Source§impl<'a> Downlink<'a>
impl<'a> Downlink<'a>
Sourcepub fn confirmed(self) -> Self
pub fn confirmed(self) -> Self
Marks the downlink as confirmed, asking the device to acknowledge it.
§Returns
The downlink, for chaining.
Sourcepub fn with_ack(self) -> Self
pub fn with_ack(self) -> Self
Sets the acknowledgement bit, confirming a previously received uplink.
§Returns
The downlink, for chaining.
Sourcepub fn with_fpending(self) -> Self
pub fn with_fpending(self) -> Self
Sets the frame-pending bit, signalling more downlinks are waiting.
§Returns
The downlink, for chaining.
Sourcepub fn with_fopts(self, fopts: &'a [u8]) -> Self
pub fn with_fopts(self, fopts: &'a [u8]) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Downlink<'a>
impl<'a> RefUnwindSafe for Downlink<'a>
impl<'a> Send for Downlink<'a>
impl<'a> Sync for Downlink<'a>
impl<'a> Unpin for Downlink<'a>
impl<'a> UnsafeUnpin for Downlink<'a>
impl<'a> UnwindSafe for Downlink<'a>
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