pub struct Info<'a> { /* private fields */ }Expand description
Info-gathering operations for the HackRF.
Borrows the interface while doing operations.
Implementations§
Source§impl<'a> Info<'a>
impl<'a> Info<'a>
Sourcepub fn api_version(&self) -> u16
pub fn api_version(&self) -> u16
Get the device’s implemented API version, as a binary-coded decimal (BCD) value.
Sourcepub fn radio_type(&self) -> HackRfType
pub fn radio_type(&self) -> HackRfType
Get the type of HackRF radio.
pub async fn board_id_read(&self) -> Result<BoardId, Error>
pub async fn version_string_read(&self) -> Result<String, Error>
pub async fn read_serial(&self) -> Result<SerialNumber, Error>
Sourcepub async fn supported_platform_read(&self) -> Result<SupportedPlatform, Error>
pub async fn supported_platform_read(&self) -> Result<SupportedPlatform, Error>
Requires API version 0x0106 or higher.
Auto Trait Implementations§
impl<'a> Freeze for Info<'a>
impl<'a> RefUnwindSafe for Info<'a>
impl<'a> Send for Info<'a>
impl<'a> Sync for Info<'a>
impl<'a> Unpin for Info<'a>
impl<'a> UnwindSafe for Info<'a>
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