Enum ChatNotify

Source
pub enum ChatNotify {
Show 36 variants JoinedNotice, LeftNotice, YouJoinedNotice, YouLeftNotice, WrongPasswordNotice, NotMemberNotice, NotModeratorNotice, PasswordChangedNotice, OwnerChangedNotice, PlayerNotFoundNotice, NotOwnerNotice, ChannelOwnerNotice, ModeChangeNotice, AnnouncementsOnNotice, AnnouncementsOffNotice, ModerationOnNotice, ModerationOffNotice, MutedNotice, PlayerKickedNotice, BannedNotice, PlayerBannedNotice, PlayerUnbannedNotice, PlayerNotBannedNotice, PlayerAlreadyMemberNotice, InviteNotice, InviteWrongFactionNotice, WrongFactionNotice, InvalidNameNotice, NotModeratedNotice, PlayerInvitedNotice, PlayerInviteBannedNotice, ThrottledNotice, NotInAreaNotice, NotInLfgNotice, VoiceOnNotice, VoiceOffNotice,
}
Available on crate feature wrath and (crate features shared or tbc or wrath) only.
Expand description

Auto generated from the original wowm in file wow_message_parser/wowm/world/chat/smsg_channel_notify.wowm:76:

enum ChatNotify : u8 {
    JOINED_NOTICE = 0x00;
    LEFT_NOTICE = 0x01;
    YOU_JOINED_NOTICE = 0x02;
    YOU_LEFT_NOTICE = 0x03;
    WRONG_PASSWORD_NOTICE = 0x04;
    NOT_MEMBER_NOTICE = 0x05;
    NOT_MODERATOR_NOTICE = 0x06;
    PASSWORD_CHANGED_NOTICE = 0x07;
    OWNER_CHANGED_NOTICE = 0x08;
    PLAYER_NOT_FOUND_NOTICE = 0x09;
    NOT_OWNER_NOTICE = 0x0A;
    CHANNEL_OWNER_NOTICE = 0x0B;
    MODE_CHANGE_NOTICE = 0x0C;
    ANNOUNCEMENTS_ON_NOTICE = 0x0D;
    ANNOUNCEMENTS_OFF_NOTICE = 0x0E;
    MODERATION_ON_NOTICE = 0x0F;
    MODERATION_OFF_NOTICE = 0x10;
    MUTED_NOTICE = 0x11;
    PLAYER_KICKED_NOTICE = 0x12;
    BANNED_NOTICE = 0x13;
    PLAYER_BANNED_NOTICE = 0x14;
    PLAYER_UNBANNED_NOTICE = 0x15;
    PLAYER_NOT_BANNED_NOTICE = 0x16;
    PLAYER_ALREADY_MEMBER_NOTICE = 0x17;
    INVITE_NOTICE = 0x18;
    INVITE_WRONG_FACTION_NOTICE = 0x19;
    WRONG_FACTION_NOTICE = 0x1A;
    INVALID_NAME_NOTICE = 0x1B;
    NOT_MODERATED_NOTICE = 0x1C;
    PLAYER_INVITED_NOTICE = 0x1D;
    PLAYER_INVITE_BANNED_NOTICE = 0x1E;
    THROTTLED_NOTICE = 0x1F;
    NOT_IN_AREA_NOTICE = 0x20;
    NOT_IN_LFG_NOTICE = 0x21;
    VOICE_ON_NOTICE = 0x22;
    VOICE_OFF_NOTICE = 0x23;
}

Variants§

§

JoinedNotice

%s joined channel.

§

LeftNotice

%s left channel.

§

YouJoinedNotice

Joined Channel: %s – You joined

§

YouLeftNotice

Left Channel: %s – You left

§

WrongPasswordNotice

Wrong password for %s.

§

NotMemberNotice

Not on channel %s.

§

NotModeratorNotice

Not a moderator of %s.

§

PasswordChangedNotice

%s Password changed by %s.

§

OwnerChangedNotice

%s Owner changed to %s.

§

PlayerNotFoundNotice

%s Player %s was not found.

§

NotOwnerNotice

%s You are not the channel owner.

§

ChannelOwnerNotice

%s Channel owner is %s.

§

ModeChangeNotice

§

AnnouncementsOnNotice

%s Channel announcements enabled by %s.

§

AnnouncementsOffNotice

%s Channel announcements disabled by %s.

§

ModerationOnNotice

%s Channel moderation enabled by %s.

§

ModerationOffNotice

%s Channel moderation disabled by %s.

§

MutedNotice

%s You do not have permission to speak.

§

PlayerKickedNotice

%s Player %s kicked by %s.

§

BannedNotice

%s You are banned from that channel.

§

PlayerBannedNotice

%s Player %s banned by %s.

§

PlayerUnbannedNotice

%s Player %s unbanned by %s.

§

PlayerNotBannedNotice

%s Player %s is not banned.

§

PlayerAlreadyMemberNotice

%s Player %s is already on the channel.

§

InviteNotice

%2$s has invited you to join the channel ‘%1$s’.

§

InviteWrongFactionNotice

Target is in the wrong alliance for %s.

§

WrongFactionNotice

Wrong alliance for %s.

§

InvalidNameNotice

Invalid channel name

§

NotModeratedNotice

%s is not moderated

§

PlayerInvitedNotice

%s You invited %s to join the channel

§

PlayerInviteBannedNotice

%s %s has been banned.

§

ThrottledNotice

%s The number of messages that can be sent to this channel is limited, please wait to send another message.

§

NotInAreaNotice

%s You are not in the correct area for this channel. – The user is trying to send a chat to a zone specific channel, and they’re not physically in that zone.

§

NotInLfgNotice

%s You must be queued in looking for group before joining this channel. – The user must be in the looking for group system to join LFG chat channels.

§

VoiceOnNotice

%s Channel voice enabled by %s.

§

VoiceOffNotice

%s Channel voice disabled by %s.

Implementations§

Source§

impl ChatNotify

Source

pub const fn as_int(&self) -> u8

Source

pub const fn variants() -> [Self; 36]

Source

pub const fn from_int(value: u8) -> Result<Self, EnumError>

Source§

impl ChatNotify

Source

pub const fn as_test_case_value(&self) -> &'static str

Available on crate feature print-testcase only.

Trait Implementations§

Source§

impl Clone for ChatNotify

Source§

fn clone(&self) -> ChatNotify

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 ChatNotify

Source§

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

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

impl Default for ChatNotify

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ChatNotify

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 Display for ChatNotify

Source§

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

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

impl Hash for ChatNotify

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 Ord for ChatNotify

Source§

fn cmp(&self, other: &ChatNotify) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ChatNotify

Source§

fn eq(&self, other: &ChatNotify) -> 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 PartialOrd for ChatNotify

Source§

fn partial_cmp(&self, other: &ChatNotify) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for ChatNotify

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 TryFrom<i16> for ChatNotify

Source§

type Error = EnumError

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

fn try_from(value: i16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i32> for ChatNotify

Source§

type Error = EnumError

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

fn try_from(value: i32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i64> for ChatNotify

Source§

type Error = EnumError

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

fn try_from(value: i64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i8> for ChatNotify

Source§

type Error = EnumError

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

fn try_from(value: i8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u16> for ChatNotify

Source§

type Error = EnumError

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

fn try_from(value: u16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u32> for ChatNotify

Source§

type Error = EnumError

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

fn try_from(value: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u64> for ChatNotify

Source§

type Error = EnumError

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

fn try_from(value: u64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u8> for ChatNotify

Source§

type Error = EnumError

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

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<usize> for ChatNotify

Source§

type Error = EnumError

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

fn try_from(value: usize) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for ChatNotify

Source§

impl Eq for ChatNotify

Source§

impl StructuralPartialEq for ChatNotify

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.
Source§

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