pub struct InstrumentSession {
pub address: ResourceAddress,
pub scpi: ScpiSession,
/* private fields */
}Expand description
Active instrument session with SCPI and cached identity.
Fields§
§address: ResourceAddress§scpi: ScpiSessionImplementations§
Source§impl InstrumentSession
impl InstrumentSession
pub fn new( address: ResourceAddress, transport: Box<dyn Transport>, opts: ConnectOptions, identity: DeviceIdentity, ) -> Result<InstrumentSession, Error>
pub fn new_with_diagnostics( address: ResourceAddress, transport: Box<dyn Transport>, opts: ConnectOptions, identity: DeviceIdentity, diagnostics: Option<Diagnostics>, ) -> Result<InstrumentSession, Error>
pub fn address_str(&self) -> &str
pub fn identity(&self) -> &DeviceIdentity
Sourcepub fn dialect_for(&self, kind: InstrumentKind) -> &'static DialectProfile
pub fn dialect_for(&self, kind: InstrumentKind) -> &'static DialectProfile
Resolves the dialect profile for kind using this session’s identity.
pub fn scpi(&self) -> &ScpiSession
pub fn scpi_mut(&mut self) -> &mut ScpiSession
pub fn idn(&mut self) -> Result<Idn, Error>
pub fn reset(&mut self) -> Result<(), Error>
pub fn clear_status(&mut self) -> Result<(), Error>
pub fn wait_complete(&mut self) -> Result<(), Error>
pub fn check_errors(&mut self) -> Result<Vec<String>, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for InstrumentSession
impl !Sync for InstrumentSession
impl !UnwindSafe for InstrumentSession
impl Freeze for InstrumentSession
impl Send for InstrumentSession
impl Unpin for InstrumentSession
impl UnsafeUnpin for InstrumentSession
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