pub enum DialogAction {
ApplyLive(SerialConfig),
ApplyAndSave(SerialConfig),
ApplyLineEndingsLive(LineEndingConfig),
ApplyLineEndingsAndSave(LineEndingConfig),
SetDtr(bool),
SetRts(bool),
SendBreak,
WriteProfile,
ReadProfile,
ApplyModalStyleLive(ModalStyle),
ApplyModalStyleAndSave(ModalStyle),
}Expand description
User-level actions emitted by dialogs. The TuiApp orchestrator
consumes these and calls into rtcom-core / rtcom-config to
apply them.
Variants§
ApplyLive(SerialConfig)
Apply SerialConfig to the live session immediately (F2 path).
ApplyAndSave(SerialConfig)
Apply SerialConfig to the live session and persist to
profile (F10 path).
ApplyLineEndingsLive(LineEndingConfig)
Apply the given LineEndingConfig to the live session
immediately (F2 path).
ApplyLineEndingsAndSave(LineEndingConfig)
Apply LineEndingConfig to the live session and persist
it to profile (F10 path).
SetDtr(bool)
Assert (true) or de-assert (false) the DTR output line.
SetRts(bool)
Assert (true) or de-assert (false) the RTS output line.
SendBreak
Send a line break (~250ms).
WriteProfile
Persist the current profile as-is.
ReadProfile
Reload profile from disk (discards unsaved live changes).
ApplyModalStyleLive(ModalStyle)
Apply the given ModalStyle to the live session immediately
(F2 path from the Screen-options dialog).
ApplyModalStyleAndSave(ModalStyle)
Apply the given ModalStyle to the live session and persist
it to profile (F10 path from the Screen-options dialog).
Trait Implementations§
Source§impl Clone for DialogAction
impl Clone for DialogAction
Source§fn clone(&self) -> DialogAction
fn clone(&self) -> DialogAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DialogAction
impl Debug for DialogAction
Source§impl PartialEq for DialogAction
impl PartialEq for DialogAction
impl Eq for DialogAction
impl StructuralPartialEq for DialogAction
Auto Trait Implementations§
impl Freeze for DialogAction
impl RefUnwindSafe for DialogAction
impl Send for DialogAction
impl Sync for DialogAction
impl Unpin for DialogAction
impl UnsafeUnpin for DialogAction
impl UnwindSafe for DialogAction
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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