Struct cameleon::u3v::register_map::ManifestEntry
source · pub struct ManifestEntry { /* private fields */ }
Expand description
Manifest entry describes GenApi
XML properties.
Implementations§
source§impl ManifestEntry
impl ManifestEntry
sourcepub fn new(entry_addr: u64) -> Self
pub fn new(entry_addr: u64) -> Self
Construct ManifestEntry
from its initial address.
Using ManifestTable::entries
is recommended to obtain ManifestEntry
.
sourcepub fn genicam_file_version<Ctrl: DeviceControl + ?Sized>(
&self,
device: &mut Ctrl
) -> ControlResult<Version>
pub fn genicam_file_version<Ctrl: DeviceControl + ?Sized>( &self, device: &mut Ctrl ) -> ControlResult<Version>
GenICam
file version.
sourcepub fn file_address<Ctrl: DeviceControl + ?Sized>(
&self,
device: &mut Ctrl
) -> ControlResult<u64>
pub fn file_address<Ctrl: DeviceControl + ?Sized>( &self, device: &mut Ctrl ) -> ControlResult<u64>
Register address where GenApi
XML file is located.
sourcepub fn file_size<Ctrl: DeviceControl + ?Sized>(
&self,
device: &mut Ctrl
) -> ControlResult<u64>
pub fn file_size<Ctrl: DeviceControl + ?Sized>( &self, device: &mut Ctrl ) -> ControlResult<u64>
GenApi
XML file size in bytes.
sourcepub fn file_info<Ctrl: DeviceControl + ?Sized>(
&self,
device: &mut Ctrl
) -> ControlResult<GenICamFileInfo>
pub fn file_info<Ctrl: DeviceControl + ?Sized>( &self, device: &mut Ctrl ) -> ControlResult<GenICamFileInfo>
GenApi
XML file info.
sourcepub fn sha1_hash<Ctrl: DeviceControl + ?Sized>(
&self,
device: &mut Ctrl
) -> ControlResult<Option<[u8; 20]>>
pub fn sha1_hash<Ctrl: DeviceControl + ?Sized>( &self, device: &mut Ctrl ) -> ControlResult<Option<[u8; 20]>>
SHA1 hash of the file. In case the hash is not available, return None.
Trait Implementations§
source§impl Clone for ManifestEntry
impl Clone for ManifestEntry
source§fn clone(&self) -> ManifestEntry
fn clone(&self) -> ManifestEntry
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 Debug for ManifestEntry
impl Debug for ManifestEntry
impl Copy for ManifestEntry
Auto Trait Implementations§
impl RefUnwindSafe for ManifestEntry
impl Send for ManifestEntry
impl Sync for ManifestEntry
impl Unpin 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