pub struct Spectroscope {
pub sampling_rate: u32,
pub buffer_size: u32,
pub average: u32,
pub buf: Vec<VecDeque<Vec<f64>>>,
pub window: bool,
pub log_y: bool,
}Fields§
§sampling_rate: u32§buffer_size: u32§average: u32§buf: Vec<VecDeque<Vec<f64>>>§window: bool§log_y: boolTrait Implementations§
Source§impl Default for Spectroscope
impl Default for Spectroscope
Source§fn default() -> Spectroscope
fn default() -> Spectroscope
Returns the “default value” for a type. Read more
Source§impl DisplayMode for Spectroscope
impl DisplayMode for Spectroscope
fn mode_str(&self) -> &'static str
fn channel_name(&self, index: usize) -> String
fn header(&self, _: &GraphConfig) -> String
fn axis(&self, cfg: &GraphConfig, dimension: Dimension) -> Axis<'_>
fn process(&mut self, cfg: &GraphConfig, data: &Matrix<f64>) -> Vec<DataSet>
fn handle(&mut self, event: Event)
fn references(&self, cfg: &GraphConfig) -> Vec<DataSet>
Source§impl From<&SourceOptions> for Spectroscope
Available on crate feature app only.
impl From<&SourceOptions> for Spectroscope
Available on crate feature
app only.Source§fn from(value: &SourceOptions) -> Self
fn from(value: &SourceOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Spectroscope
impl RefUnwindSafe for Spectroscope
impl Send for Spectroscope
impl Sync for Spectroscope
impl Unpin for Spectroscope
impl UnwindSafe for Spectroscope
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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