pub struct MaxPayload {
pub mac_payload: u16,
pub application: u16,
}Expand description
The largest payload a data rate carries.
M is the MACPayload limit the physical layer imposes. N is the
application payload that leaves room for the frame header, and shrinks
further if the frame carries MAC commands in its FOpts field.
Fields§
§mac_payload: u16The largest MACPayload, in bytes.
application: u16The largest application payload with an empty FOpts field, in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for MaxPayload
impl Clone for MaxPayload
Source§fn clone(&self) -> MaxPayload
fn clone(&self) -> MaxPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MaxPayload
Source§impl Debug for MaxPayload
impl Debug for MaxPayload
impl Eq for MaxPayload
Source§impl PartialEq for MaxPayload
impl PartialEq for MaxPayload
Source§fn eq(&self, other: &MaxPayload) -> bool
fn eq(&self, other: &MaxPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MaxPayload
Auto Trait Implementations§
impl Freeze for MaxPayload
impl RefUnwindSafe for MaxPayload
impl Send for MaxPayload
impl Sync for MaxPayload
impl Unpin for MaxPayload
impl UnsafeUnpin for MaxPayload
impl UnwindSafe for MaxPayload
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