Struct pico_streaming::PicoStreamingDevice [−][src]
pub struct PicoStreamingDevice { pub new_data: StreamingEvents, // some fields omitted }
Expand description
Encapsulates a PicoDevice
and adds streaming functionality
Automatically reconfigures and restarts streaming if the device connection is lost.
Fields
new_data: StreamingEvents
Implementations
impl PicoStreamingDevice
[src]
impl PicoStreamingDevice
[src]pub fn get_serial(&self) -> String
[src]
pub fn get_variant(&self) -> String
[src]
pub fn enable_channel(
&self,
channel: PicoChannel,
range: PicoRange,
coupling: PicoCoupling
)
[src]
&self,
channel: PicoChannel,
range: PicoRange,
coupling: PicoCoupling
)
pub fn disable_channel(&self, channel: PicoChannel)
[src]
pub fn get_channels(&self) -> Vec<PicoChannel>
[src]
pub fn get_valid_ranges(&self, channel: PicoChannel) -> Option<Vec<PicoRange>>
[src]
pub fn get_channel_config(&self, channel: PicoChannel) -> Option<ChannelConfig>
[src]
pub fn start(&self, requested_sample_rate: u32) -> PicoResult<u32>
[src]
pub fn start(&self, requested_sample_rate: u32) -> PicoResult<u32>
[src]Start streaming
Trait Implementations
impl Clone for PicoStreamingDevice
[src]
impl Clone for PicoStreamingDevice
[src]fn clone(&self) -> PicoStreamingDevice
[src]
fn clone(&self) -> PicoStreamingDevice
[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 Debug for PicoStreamingDevice
[src]
impl Debug for PicoStreamingDevice
[src]impl From<PicoDevice> for PicoStreamingDevice
[src]
impl From<PicoDevice> for PicoStreamingDevice
[src]fn from(d: PicoDevice) -> Self
[src]
fn from(d: PicoDevice) -> Self
[src]Performs the conversion.
impl Hash for PicoStreamingDevice
[src]
impl Hash for PicoStreamingDevice
[src]impl Eq for PicoStreamingDevice
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PicoStreamingDevice
impl Send for PicoStreamingDevice
impl Sync for PicoStreamingDevice
impl Unpin for PicoStreamingDevice
impl !UnwindSafe for PicoStreamingDevice
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