Skip to main content

Cmd

Enum Cmd 

Source
pub enum Cmd {
Show 17 variants Join(String), Open(String), Keep, Part(Option<String>), Quit, Tab(TabKind), Whisper(String, String), Dm(String, String), Op(String), Re(String), Block(String), Unblock(String), Blocked, Share, Layout(String), Send(String), Usage(&'static str),
}
Expand description

what a line typed into the composer turns out to be.

Variants§

§

Join(String)

§

Open(String)

/open <channel> — look at a stream in the one unsaved temp tab.

§

Keep

/keep — promote the temp tab to a saved one.

§

Part(Option<String>)

leave a named channel, or the focused one when None.

§

Quit

§

Tab(TabKind)

open (or focus) a virtual tab: /mentions, /feed, /whispers.

§

Whisper(String, String)

/w <user> <text> — a twitch whisper through heatsync.

§

Dm(String, String)

/dm <user> <text> — a heatsync direct message.

§

Op(String)

/op <text> — post to the heatsync feed.

§

Re(String)

/re <text> — reply to the last OP you posted.

§

Block(String)

/block <emote> — hide that exact emote everywhere.

§

Unblock(String)

/unblock <emote> — bring it back.

§

Blocked

/blocked — list what’s hidden.

§

Share

/sharelayout (/sl, /share) — copy the open channels as a heatsync.org/m/ link.

§

Layout(String)

/layout <link> — open the channels in a share link.

§

Send(String)

send these bytes to the platform as an ordinary message.

§

Usage(&'static str)

a client command we recognise but that was typed without its argument.

Trait Implementations§

Source§

impl Debug for Cmd

Source§

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

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

impl PartialEq for Cmd

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Cmd

Auto Trait Implementations§

§

impl Forget for Cmd

§

impl Freeze for Cmd

§

impl Move for Cmd

§

impl RefUnwindSafe for Cmd

§

impl Send for Cmd

§

impl Sync for Cmd

§

impl Unpin for Cmd

§

impl UnsafeUnpin for Cmd

§

impl UnwindSafe for Cmd

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<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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.