pub enum BindAction {
SetInput {
name: String,
value: String,
},
Quit,
Beep,
Alert(String),
Flash {
widget: String,
color: String,
},
Exec(String),
Send(String),
ActorTell {
refname: String,
call: String,
},
ActorAsk {
ctrl: String,
refname: String,
call: String,
},
Seq(Vec<BindAction>),
}Variants§
SetInput
Set an input .name widget’s value — with out { … apply .name } this
reshapes the live pipe on a keystroke (a keyboard-driven megafilter/map).
Quit
Quit the TUI.
Beep
Ring the terminal bell (write 0x07 after the next draw).
Alert(String)
Flash a message in the status bar for a few seconds.
Flash
Tint a widget’s border/accent for a few seconds. widget is the path
without the leading dot; color is a color name (green/red/…).
Exec(String)
Run a shell command, fire-and-forget (never waits, never blocks the loop).
Send(String)
Write text to a spawn -pty child’s stdin — the Expect send. No-op
unless the stream source is a PTY. Include \n to submit a line.
ActorTell
tell REF MSG(args) — post a message to a session actor/pool, fire-and-
forget (SPEC §15). call is the raw MSG(args) text, parsed + evaluated
(with live control substitution) when the action fires.
ActorAsk
ask .CTRL REF MSG(args) — ask a session actor/pool and store the reply
into control ctrl (so a widget bound to it shows the result).
Seq(Vec<BindAction>)
Run several actions in order (block form { alert "x"; beep }).
Trait Implementations§
Source§impl Clone for BindAction
impl Clone for BindAction
Source§impl Debug for BindAction
impl Debug for BindAction
impl Eq for BindAction
Source§impl PartialEq for BindAction
impl PartialEq for BindAction
impl StructuralPartialEq for BindAction
Auto Trait Implementations§
impl Forget for BindAction
impl Freeze for BindAction
impl Move for BindAction
impl RefUnwindSafe for BindAction
impl Send for BindAction
impl Sync for BindAction
impl Unpin for BindAction
impl UnsafeUnpin for BindAction
impl UnwindSafe for BindAction
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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<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<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