[][src]Struct hexchat::Priority

pub struct Priority(pub i8);

The priority of an event listener or command.

This represents what order listeners or command handlers will be called, and earlier listeners or command handlers can prevent later listeners or 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 the built-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]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for Priority[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Eq for Priority[src]

impl Copy for Priority[src]

impl PartialOrd<Priority> for Priority[src]

impl PartialEq<Priority> for Priority[src]

impl Debug for Priority[src]

Auto Trait Implementations

impl Send for Priority

impl Sync for Priority

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.