pub struct PicoStreamingDevice {
pub new_data: StreamingEvents,
/* private fields */
}
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§
Source§impl PicoStreamingDevice
impl PicoStreamingDevice
pub fn get_serial(&self) -> String
pub fn get_variant(&self) -> String
pub fn enable_channel( &self, channel: PicoChannel, range: PicoRange, coupling: PicoCoupling, )
pub fn disable_channel(&self, channel: PicoChannel)
pub fn get_channels(&self) -> Vec<PicoChannel>
pub fn get_valid_ranges(&self, channel: PicoChannel) -> Option<Vec<PicoRange>>
pub fn get_channel_config(&self, channel: PicoChannel) -> Option<ChannelConfig>
Trait Implementations§
Source§impl Clone for PicoStreamingDevice
impl Clone for PicoStreamingDevice
Source§fn clone(&self) -> PicoStreamingDevice
fn clone(&self) -> PicoStreamingDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PicoStreamingDevice
impl Debug for PicoStreamingDevice
Source§impl From<PicoDevice> for PicoStreamingDevice
impl From<PicoDevice> for PicoStreamingDevice
Source§fn from(d: PicoDevice) -> PicoStreamingDevice
fn from(d: PicoDevice) -> PicoStreamingDevice
Converts to this type from the input type.
Source§impl Hash for PicoStreamingDevice
impl Hash for PicoStreamingDevice
Source§impl PartialEq for PicoStreamingDevice
impl PartialEq for PicoStreamingDevice
impl Eq for PicoStreamingDevice
Auto Trait Implementations§
impl Freeze for PicoStreamingDevice
impl !RefUnwindSafe for PicoStreamingDevice
impl Send for PicoStreamingDevice
impl Sync for PicoStreamingDevice
impl Unpin for PicoStreamingDevice
impl !UnwindSafe for PicoStreamingDevice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more