Struct bitcoin_peerman::PriorityComputer
source · pub struct PriorityComputer {
pub k0: u64,
pub k1: u64,
}Expand description
| A functor with embedded salt that computes | priority of an announcement. | | Higher priorities are selected first. |
Fields§
§k0: u64§k1: u64Implementations§
Trait Implementations§
source§impl Clone for PriorityComputer
impl Clone for PriorityComputer
source§fn clone(&self) -> PriorityComputer
fn clone(&self) -> PriorityComputer
Returns a copy 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 RefUnwindSafe for PriorityComputer
impl Send for PriorityComputer
impl Sync for PriorityComputer
impl Unpin for PriorityComputer
impl UnwindSafe for PriorityComputer
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more