Struct pico_enumeration::DeviceEnumerator [−][src]
pub struct DeviceEnumerator { /* fields omitted */ }
Expand description
Enumerates PicoDevice
’s
Discovers Pico devices by USB Vendor ID, handles loading the required Pico drivers and enumerates them in parallel.
use pico_enumeration::DeviceEnumerator; let enumerator = DeviceEnumerator::new(); let results = enumerator.enumerate();
Implementations
impl DeviceEnumerator
[src]
impl DeviceEnumerator
[src]pub fn new() -> Self
[src]
pub fn with_resolution(resolution: Resolution) -> Self
[src]
pub fn with_resolution(resolution: Resolution) -> Self
[src]Creates a new DeviceEnumerator
with the supplied resolution
pub fn enumerate_raw() -> HashMap<Driver, usize>
[src]
pub fn enumerate_raw() -> HashMap<Driver, usize>
[src]Enumerates Pico devices via USB Vendor ID. Returns the number of devices
discovered for each Driver
type
pub fn enumerate(&self) -> Vec<Result<EnumeratedDevice, EnumerationError>>
[src]
pub fn enumerate(&self) -> Vec<Result<EnumeratedDevice, EnumerationError>>
[src]Enumerates required drivers and returns a flattened list of results
Trait Implementations
impl Clone for DeviceEnumerator
[src]
impl Clone for DeviceEnumerator
[src]fn clone(&self) -> DeviceEnumerator
[src]
fn clone(&self) -> DeviceEnumerator
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Default for DeviceEnumerator
[src]
impl Default for DeviceEnumerator
[src]fn default() -> DeviceEnumerator
[src]
fn default() -> DeviceEnumerator
[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for DeviceEnumerator
impl Send for DeviceEnumerator
impl Sync for DeviceEnumerator
impl Unpin for DeviceEnumerator
impl !UnwindSafe for DeviceEnumerator
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more