Enum ethcore::miner::Penalization
source · [−]pub enum Penalization {
Disabled,
Enabled {
offend_threshold: Duration,
},
}
Expand description
Transaction queue penalization settings.
Senders of long-running transactions (above defined threshold) will get lower priority.
Variants
Disabled
Penalization in transaction queue is disabled
Enabled
Fields
offend_threshold: Duration
Upper limit of transaction processing time before penalizing.
Penalization in transaction queue is enabled
Trait Implementations
sourceimpl Clone for Penalization
impl Clone for Penalization
sourcefn clone(&self) -> Penalization
fn clone(&self) -> Penalization
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Penalization
impl Debug for Penalization
sourceimpl PartialEq<Penalization> for Penalization
impl PartialEq<Penalization> for Penalization
sourcefn eq(&self, other: &Penalization) -> bool
fn eq(&self, other: &Penalization) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Penalization) -> bool
fn ne(&self, other: &Penalization) -> bool
This method tests for !=
.
impl StructuralPartialEq for Penalization
Auto Trait Implementations
impl RefUnwindSafe for Penalization
impl Send for Penalization
impl Sync for Penalization
impl Unpin for Penalization
impl UnwindSafe for Penalization
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more