pub enum WeightType {
Normal(NonZeroU32),
Unit(NonZeroU32),
}Expand description
队列权重类型
Variants§
Normal(NonZeroU32)
Unit(NonZeroU32)
Trait Implementations§
Source§impl Clone for WeightType
impl Clone for WeightType
Source§fn clone(&self) -> WeightType
fn clone(&self) -> WeightType
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 moreSource§impl Debug for WeightType
impl Debug for WeightType
Source§impl PartialEq for WeightType
impl PartialEq for WeightType
impl Copy for WeightType
impl Eq for WeightType
impl StructuralPartialEq for WeightType
Auto Trait Implementations§
impl Freeze for WeightType
impl RefUnwindSafe for WeightType
impl Send for WeightType
impl Sync for WeightType
impl Unpin for WeightType
impl UnwindSafe for WeightType
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