Skip to main content

ActionKind

Enum ActionKind 

Source
pub enum ActionKind {
Show 39 variants Bold, Br, Color, Dest, Expire, Filter, Font, Frame, Gauge, H1, H2, H3, H4, H5, H6, Highlight, Hr, Hyperlink, Image, Italic, Music, Mxp, NoBr, P, Password, Relocate, Reset, SBr, Send, Small, Sound, Stat, Strikeout, Support, Tt, Underline, User, Var, Version,
}
Expand description

Type of effect caused by an Action.

Variants§

§

Bold

<BOLD>: Make text bold.

§

Br

<BR>: Insert a hard line break.

§

Color

<COLOR>: Change text color.

§

Dest

<DEST>: Set destination frame.

§

Expire

<EXPIRE>: Expire links.

§

Filter

<FILTER>: Set file filter.

§

Font

<FONT>: Change text font.

§

Frame

<FRAME>: Create a frame window.

§

Gauge

<GAUGE>: Display an MXP entity value as a gauge.

§

H1

Level 1 heading.

§

H2

Level 2 heading.

§

H3

Level 3 heading.

§

H4

Level 4 heading.

§

H5

Level 5 heading.

§

H6

Level 6 heading.

§

Highlight

<HIGH>: Highlight text.

§

Hr

<HR>: Insert a horizontal rule.

<A>: Hyperlink.

§

Image

<IMAGE>: Display an image.

§

Italic

<ITALIC>: Make text italic.

§

Music

<MUSIC>: Play or stop music.

§

Mxp

<MXP OFF>: MXP control command. This is an unofficial extension to the MXP protocol.

§

NoBr

<NOBR>: Ignore next newline.

§

P

<P>: Insert a paragraph break.

§

Password

<PASSWORD>: Prompt client to send user password.

§

Relocate

<RELOCATE>: Prompt client to switch to a new network connection.

§

Reset

<RESET>: Close all OPEN tags. This is an unofficial extension to the MXP protocol.

§

SBr

<SBR>: Insert a soft linebreak.

§

Send

<Send>: Turn text into a link that sends a command to the world.

§

Small

<SMALL>: Display text in a smaller size.

§

Sound

<SOUND>: Play or stop a sound file.

§

Stat

<STAT>: Display an MXP entity value on the status bar.

§

Strikeout

<STRIKEOUT>: Strike-out the text.

§

Support

<SUPPORT>: Prompt client to respond with the commands that it supports.

§

Tt

<TT>: Display text in a non-proportional font.

§

Underline

<UNDERLINE>: Underline text.

§

User

<USER>: Prompt client to send username.

§

Var

<VAR>: Set an MXP variable.

§

Version

<VERSION>: Prompt client to respond with its client and version of MXP.

Implementations§

Source§

impl ActionKind

Source

pub const fn is_command(self) -> bool

Returns true if this is a command tag. Command tags do not have content, so they have no closing tag.

Source

pub const fn is_open(self) -> bool

Returns true if the action can be used if the MXP line Mode is OPEN.

The following actions are OPEN:

Trait Implementations§

Source§

impl<R: Into<FlagSet<ActionKind>>> BitAnd<R> for ActionKind

Source§

type Output = FlagSet<ActionKind>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: R) -> Self::Output

Performs the & operation. Read more
Source§

impl<R: Into<FlagSet<ActionKind>>> BitOr<R> for ActionKind

Source§

type Output = FlagSet<ActionKind>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: R) -> Self::Output

Performs the | operation. Read more
Source§

impl<R: Into<FlagSet<ActionKind>>> BitXor<R> for ActionKind

Source§

type Output = FlagSet<ActionKind>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: R) -> Self::Output

Performs the ^ operation. Read more
Source§

impl Clone for ActionKind

Source§

fn clone(&self) -> ActionKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ActionKind

Source§

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

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

impl Display for ActionKind

Source§

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

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

impl From<ActionKind> for FlagSet<ActionKind>

Source§

fn from(value: ActionKind) -> Self

Converts to this type from the input type.
Source§

impl Not for ActionKind

Source§

type Output = FlagSet<ActionKind>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl PartialEq for ActionKind

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<R: Into<FlagSet<ActionKind>>> Rem<R> for ActionKind

Source§

type Output = FlagSet<ActionKind>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: R) -> Self::Output

Performs the % operation. Read more
Source§

impl<R: Into<FlagSet<ActionKind>>> Sub<R> for ActionKind

Source§

type Output = FlagSet<ActionKind>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: R) -> Self::Output

Performs the - operation. Read more
Source§

impl Copy for ActionKind

Source§

impl Eq for ActionKind

Source§

impl StructuralPartialEq for ActionKind

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<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> 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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.