Skip to main content

TearSignalKind

Enum TearSignalKind 

Source
pub enum TearSignalKind {
Show 14 variants SessionActive, SessionDetached, PaneZoomed, PrefixArmed, Online, Offline, Degraded, Bell, FleetMark, Window, SplitHorizontal, SplitVertical, SyncPanes, CopyMode,
}
Expand description

A semantic name for one fleet/tear status signal. Each variant maps to exactly one field of TearSignals (which composes the shared ishou_tokens::FleetSignals vocabulary) — so an operator writes Segment::Signal { kind: TearSignalKind::SessionActive, .. } and gets the fleet-uniform 🌊 / / active triple instead of hand-typing an emoji into a Segment::Text. Touching the ishou atlas moves the glyph fleet-wide on the next compile; tear never hardcodes the mark.

Variants§

§

SessionActive

An attached, live session — the fleet 🌊 tide mark.

§

SessionDetached

A detached / sleeping session.

§

PaneZoomed

A zoomed / maximized pane.

§

PrefixArmed

The multiplexer prefix key is armed (awaiting a command key).

§

Online

Connected / healthy.

§

Offline

Disconnected / down.

§

Degraded

Degraded / partial.

§

Bell

Terminal bell / attention.

§

FleetMark

The pleme-io fleet mark — Nord frost .

§

Window

A window (a tab / group of panes).

§

SplitHorizontal

A horizontal split.

§

SplitVertical

A vertical split.

§

SyncPanes

Input synchronized across panes (send-to-all).

§

CopyMode

Copy-mode / scrollback navigation active.

Implementations§

Source§

impl TearSignalKind

Source

pub fn signal(self) -> Signal

The Signal triple this kind names, drawn from the prescribed TearSignals atlas. The single source of truth for tear’s status glyphs — no literal emoji lives in tear’s source.

Source

pub fn render(self, mode: SignalRenderMode) -> &'static str

Render this kind’s glyph at mode, falling back so a chosen field that is empty (e.g. a bare-tier emoji) still yields a non-empty mark rather than vanishing from the bar.

Trait Implementations§

Source§

impl Clone for TearSignalKind

Source§

fn clone(&self) -> TearSignalKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for TearSignalKind

Source§

impl Debug for TearSignalKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TearSignalKind

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for TearSignalKind

Source§

impl Hash for TearSignalKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for TearSignalKind

Source§

fn eq(&self, other: &TearSignalKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TearSignalKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TearSignalKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.