[−][src]Struct hexchat::Priority
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]
fn cmp(&self, other: &Priority) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
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 StructuralEq for Priority
[src]
impl StructuralPartialEq for Priority
[src]
Auto Trait Implementations
impl RefUnwindSafe for Priority
impl Send for Priority
impl Sync for Priority
impl Unpin for Priority
impl UnwindSafe for Priority
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,