pub struct ManifestEntry {
pub file_address: u64,
pub file_size: u64,
}Expand description
A single entry in the ABRM ManifestTable.
Fields§
§file_address: u64§file_size: u64Implementations§
Source§impl ManifestEntry
impl ManifestEntry
Sourcepub fn read_first<T: UsbTransfer>(
control: &mut ControlChannel<T>,
table_address: u64,
) -> Result<Self, U3vError>
pub fn read_first<T: UsbTransfer>( control: &mut ControlChannel<T>, table_address: u64, ) -> Result<Self, U3vError>
Read the first manifest entry from the manifest table at the given address (from ABRM). Only the first entry is read; multi-entry tables are uncommon in practice.
Trait Implementations§
Source§impl Clone for ManifestEntry
impl Clone for ManifestEntry
Source§fn clone(&self) -> ManifestEntry
fn clone(&self) -> ManifestEntry
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 moreAuto Trait Implementations§
impl Freeze for ManifestEntry
impl RefUnwindSafe for ManifestEntry
impl Send for ManifestEntry
impl Sync for ManifestEntry
impl Unpin for ManifestEntry
impl UnsafeUnpin for ManifestEntry
impl UnwindSafe for ManifestEntry
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