pub struct TernaryPriorityQueue { /* private fields */ }Implementations§
Source§impl TernaryPriorityQueue
impl TernaryPriorityQueue
pub fn new() -> Self
pub fn push(&mut self, name: &str, exact_priority: i32) -> u64
pub fn push_with_score(&mut self, name: &str, exact: i32, score: i8) -> u64
pub fn pop(&mut self) -> Option<KernelJob>
pub fn peek(&self) -> Option<&KernelJob>
pub fn drain_high_priority(&mut self) -> Vec<KernelJob>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn high_count(&self) -> u64
pub fn normal_count(&self) -> u64
pub fn low_count(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TernaryPriorityQueue
impl RefUnwindSafe for TernaryPriorityQueue
impl Send for TernaryPriorityQueue
impl Sync for TernaryPriorityQueue
impl Unpin for TernaryPriorityQueue
impl UnsafeUnpin for TernaryPriorityQueue
impl UnwindSafe for TernaryPriorityQueue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more