pub struct UiActionController { /* private fields */ }Expand description
Controller for high-level UI actions like pause/resume and saving a PNG.
External code can request pausing/resuming the live stream display and trigger a screenshot (equivalent to the UI’s “Save PNG” button). The screenshot request behaves like the UI: it will open a save dialog for the user.
Implementations§
Source§impl UiActionController
impl UiActionController
Sourcepub fn request_save_png(&self)
pub fn request_save_png(&self)
Request the UI to take a screenshot and prompt to save as PNG.
Sourcepub fn request_save_png_to_path<P: Into<PathBuf>>(&self, path: P)
pub fn request_save_png_to_path<P: Into<PathBuf>>(&self, path: P)
Request the UI to save a PNG screenshot to the exact provided path (non-interactive).
Sourcepub fn request_save_raw(&self, fmt: RawExportFormat)
pub fn request_save_raw(&self, fmt: RawExportFormat)
Request saving raw time-domain data; the UI will prompt for a filename.
Sourcepub fn request_save_raw_to_path<P: Into<PathBuf>>(
&self,
fmt: RawExportFormat,
path: P,
)
pub fn request_save_raw_to_path<P: Into<PathBuf>>( &self, fmt: RawExportFormat, path: P, )
Request saving raw data directly to the given path (non-interactive).
Sourcepub fn subscribe_fft_data(&self) -> Receiver<FFTRawData>
pub fn subscribe_fft_data(&self) -> Receiver<FFTRawData>
Subscribe to receive the current raw FFT input data (time-domain) for a trace.
Sourcepub fn request_fft_data_current(&self)
pub fn request_fft_data_current(&self)
Request FFT input data for the currently selected trace (if any).
Sourcepub fn request_fft_data_for<S: Into<String>>(&self, name: S)
pub fn request_fft_data_for<S: Into<String>>(&self, name: S)
Request FFT input data for a specific named trace.
Trait Implementations§
Source§impl Clone for UiActionController
impl Clone for UiActionController
Source§fn clone(&self) -> UiActionController
fn clone(&self) -> UiActionController
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for UiActionController
impl RefUnwindSafe for UiActionController
impl Send for UiActionController
impl Sync for UiActionController
impl Unpin for UiActionController
impl UnwindSafe for UiActionController
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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