[−][src]Struct hexchat::Priority
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(&self) -> Priority
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Priority> for Priority
[src]
impl PartialOrd<Priority> for Priority
[src]
fn partial_cmp(&self, other: &Priority) -> Option<Ordering>
[src]
fn lt(&self, other: &Priority) -> bool
[src]
fn le(&self, other: &Priority) -> bool
[src]
fn gt(&self, other: &Priority) -> bool
[src]
fn ge(&self, other: &Priority) -> bool
[src]
impl Eq for Priority
[src]
impl Ord for Priority
[src]
fn cmp(&self, other: &Priority) -> Ordering
[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 Copy for Priority
[src]
impl Debug for Priority
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.