pub struct FileHeader {
pub permissions: Permissions,
pub properties: FileProperties,
pub alp_cmd_fid: u8,
pub interface_file_id: u8,
pub file_size: u32,
pub allocated_size: u32,
}
Fields§
§permissions: Permissions
Permissions of the file
properties: FileProperties
Properties of the file
alp_cmd_fid: u8
Index of the File containing the ALP Command, executed by D7AActP. Discarded if the ACT_EN field in Properties is set to 0.
interface_file_id: u8
Index of the File containing the Interface, on which the result of D7AActP is sent. Discarded if the ACT_EN field in Properties is set to 0.
file_size: u32
Current size of the file.
allocated_size: u32
Size, allocated for the file in memory (appending data to the file cannot exceed this value)
Trait Implementations§
source§impl Clone for FileHeader
impl Clone for FileHeader
source§fn clone(&self) -> FileHeader
fn clone(&self) -> FileHeader
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 FileHeader
impl Codec for FileHeader
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 FileHeader
impl Debug for FileHeader
source§impl Display for FileHeader
impl Display for FileHeader
source§impl PartialEq for FileHeader
impl PartialEq for FileHeader
source§fn eq(&self, other: &FileHeader) -> bool
fn eq(&self, other: &FileHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FileHeader
impl StructuralPartialEq for FileHeader
Auto Trait Implementations§
impl Freeze for FileHeader
impl RefUnwindSafe for FileHeader
impl Send for FileHeader
impl Sync for FileHeader
impl Unpin for FileHeader
impl UnwindSafe for FileHeader
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