Struct dash7_alp::spec::v1_2::action::read_file_data::ReadFileData
source · pub struct ReadFileData {
pub group: bool,
pub resp: bool,
pub file_id: u8,
pub offset: u32,
pub size: u32,
}
Expand description
Read data from a file
Fields§
§group: bool
Group with next action
resp: bool
Ask for a response (read data via ReturnFileData)
Generally true unless you just want to trigger a read on the filesystem
file_id: u8
§offset: u32
§size: u32
Implementations§
source§impl ReadFileData
impl ReadFileData
pub fn validate(self) -> Result<(), OperandValidationError>
Trait Implementations§
source§impl Clone for ReadFileData
impl Clone for ReadFileData
source§fn clone(&self) -> ReadFileData
fn clone(&self) -> ReadFileData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Codec for ReadFileData
impl Codec for ReadFileData
type Error = StdError
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Computes the number of bytes required to encode the item.
source§unsafe fn encode_in(&self, out: &mut [u8]) -> usize
unsafe fn encode_in(&self, out: &mut [u8]) -> usize
Encode the item into a given byte array. Read more
source§impl Debug for ReadFileData
impl Debug for ReadFileData
source§impl Display for ReadFileData
impl Display for ReadFileData
source§impl PartialEq for ReadFileData
impl PartialEq for ReadFileData
source§fn eq(&self, other: &ReadFileData) -> bool
fn eq(&self, other: &ReadFileData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ReadFileData
impl StructuralPartialEq for ReadFileData
Auto Trait Implementations§
impl Freeze for ReadFileData
impl RefUnwindSafe for ReadFileData
impl Send for ReadFileData
impl Sync for ReadFileData
impl Unpin for ReadFileData
impl UnwindSafe for ReadFileData
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