pub struct DataFrame {
pub kind: FrameType,
pub function: u8,
pub payload: Vec<u8>,
}Expand description
A data frame.
Fields§
§kind: FrameTypeRequest or response.
function: u8Function id.
payload: Vec<u8>Payload, at most MAX_PAYLOAD bytes.
Implementations§
Trait Implementations§
impl Eq for DataFrame
impl StructuralPartialEq for DataFrame
Auto Trait Implementations§
impl Freeze for DataFrame
impl RefUnwindSafe for DataFrame
impl Send for DataFrame
impl Sync for DataFrame
impl Unpin for DataFrame
impl UnsafeUnpin for DataFrame
impl UnwindSafe for DataFrame
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