pub struct WeightedQueue {
pub name: String,
pub weight: QueueWeight,
}Expand description
A queue with an associated weight.
Fields§
§name: String§weight: QueueWeightImplementations§
Source§impl WeightedQueue
impl WeightedQueue
pub fn new(name: impl Into<String>, weight: QueueWeight) -> Self
Trait Implementations§
Source§impl Clone for WeightedQueue
impl Clone for WeightedQueue
Source§fn clone(&self) -> WeightedQueue
fn clone(&self) -> WeightedQueue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WeightedQueue
impl RefUnwindSafe for WeightedQueue
impl Send for WeightedQueue
impl Sync for WeightedQueue
impl Unpin for WeightedQueue
impl UnsafeUnpin for WeightedQueue
impl UnwindSafe for WeightedQueue
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