Struct capsules::ieee802154::framer::Frame
[−]
[src]
pub struct Frame {
buf: &'static mut [u8],
info: FrameInfo,
}A Frame wraps a static mutable byte slice and keeps just enough
information about its header contents to expose a restricted interface for
modifying its payload. This enables the user to abdicate any concerns about
where the payload should be placed in the buffer.
Fields
buf: &'static mut [u8]
info: FrameInfo
Methods
impl Frame[src]
pub fn into_buf(self) -> &'static mut [u8][src]
Consumes the frame and retrieves the buffer it wraps
pub fn remaining_data_capacity(&self) -> usize[src]
Calculates how much more data this frame can hold
pub fn append_payload(&mut self, payload: &[u8]) -> ReturnCode[src]
Appends payload bytes into the frame if possible
Trait Implementations
impl Eq for Frame[src]
fn assert_receiver_is_total_eq(&self)[src]
impl PartialEq for Frame[src]
fn eq(&self, __arg_0: &Frame) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Frame) -> bool[src]
This method tests for !=.