pub struct ShardedNodeQueue { /* private fields */ }Implementations§
Source§impl ShardedNodeQueue
impl ShardedNodeQueue
pub fn new(total_capacity: usize) -> Self
pub fn push(&self, node: NodeTuple)
pub fn pop_batch( &self, count: usize, filter_ipv6: Option<bool>, ) -> Vec<NodeTuple>
pub fn get_random_nodes( &self, count: usize, filter_ipv6: Option<bool>, ) -> Vec<NodeTuple>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_empty_for(&self, filter_ipv6: Option<bool>) -> bool
Auto Trait Implementations§
impl Freeze for ShardedNodeQueue
impl RefUnwindSafe for ShardedNodeQueue
impl Send for ShardedNodeQueue
impl Sync for ShardedNodeQueue
impl Unpin for ShardedNodeQueue
impl UnwindSafe for ShardedNodeQueue
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