pub struct Discovery { /* private fields */ }Expand description
Discovery builder for scanning and classifying instruments.
Implementations§
Source§impl Discovery
impl Discovery
pub fn visa() -> Result<Self>
pub fn new( enumerator: Arc<dyn ResourceEnumerator>, opener: Arc<dyn SessionOpener>, registry: ModelRegistry, ) -> Self
pub fn manual_address(self, address: impl Into<String>) -> Self
pub fn override_kinds( self, address: impl Into<String>, kinds: Vec<InstrumentKind>, ) -> Self
pub fn with_registry(self, registry: ModelRegistry) -> Self
pub fn probe_policy(self, policy: ProbePolicy) -> Self
pub fn connect_options(self, opts: ConnectOptions) -> Self
pub fn observer(self, observer: Arc<dyn CommsObserver>) -> Self
pub fn scan(self) -> Result<DeviceCatalog>
Auto Trait Implementations§
impl !RefUnwindSafe for Discovery
impl !UnwindSafe for Discovery
impl Freeze for Discovery
impl Send for Discovery
impl Sync for Discovery
impl Unpin for Discovery
impl UnsafeUnpin for Discovery
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