pub struct DeviceRef { /* private fields */ }Expand description
Handle to a catalog device — cheap to clone, opens sessions on demand.
Implementations§
Source§impl DeviceRef
impl DeviceRef
pub fn discovered(&self) -> &DiscoveredDevice
pub fn address(&self) -> &ResourceAddress
pub fn supported_kinds(&self) -> &[InstrumentKind]
pub fn connect_options(&self) -> &ConnectOptions
pub fn health(&self) -> DeviceHealth
pub fn with_connect_options(self, opts: ConnectOptions) -> Self
Sourcepub fn open_session(&self) -> Result<InstrumentSession>
pub fn open_session(&self) -> Result<InstrumentSession>
Opens a new independent session to this device.
pub fn session_pool(&self) -> Result<SessionPool>
pub fn open_dmm(&self) -> Result<Dmm>
pub fn open_dc_power_supply(&self) -> Result<DcPowerSupply>
pub fn open_function_generator(&self) -> Result<FunctionGenerator>
pub fn open_oscilloscope(&self) -> Result<Oscilloscope>
pub fn open_switch(&self) -> Result<Switch>
pub fn open_counter(&self) -> Result<Counter>
pub fn open_power_meter(&self) -> Result<PowerMeter>
pub fn open_spectrum_analyzer(&self) -> Result<SpectrumAnalyzer>
pub fn open_untyped(&self) -> Result<InstrumentSession>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DeviceRef
impl !UnwindSafe for DeviceRef
impl Freeze for DeviceRef
impl Send for DeviceRef
impl Sync for DeviceRef
impl Unpin for DeviceRef
impl UnsafeUnpin for DeviceRef
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