[][src]Struct hexchat::Priority

pub struct Priority(pub i8);

The priority of an event listener or command.

This represents what order listeners or commandhandlers will be called, and earlier listeners or command handlers can prevent later listenersor command handlers from seeing the event or command via EatMode::Plugin or EatMode::All.Priority instances can be constructed from any i8, but you are encouraged to use thebuilt-in constants, and especially Priority::NORMAL at that.

Methods

impl Priority[src]

pub const HIGHEST: Self[src]

The highest possible priority.

pub const HIGH: Self[src]

A mediumly high Self.

pub const NORMAL: Self[src]

Normal Self. Prefer this Self.

pub const LOW: Self[src]

A mediumly low Self.

pub const LOWEST: Self[src]

The lowest possible Self.

Trait Implementations

impl Clone for Priority[src]

impl Copy for Priority[src]

impl Debug for Priority[src]

impl Eq for Priority[src]

impl Ord for Priority[src]

impl PartialEq<Priority> for Priority[src]

impl PartialOrd<Priority> for Priority[src]

impl StructuralEq for Priority[src]

impl StructuralPartialEq for Priority[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.