pub struct ScoreWeights {
pub destination_probability: f64,
pub encounter_recency: f64,
pub encounter_frequency: f64,
pub delivery_history: f64,
pub peer_capacity: f64,
pub object_priority: f64,
pub remaining_lifetime: f64,
pub replication_need: f64,
pub battery_cost: f64,
pub storage_pressure: f64,
pub transport_reliability: f64,
}Fields§
§destination_probability: f64§encounter_recency: f64§encounter_frequency: f64§delivery_history: f64§peer_capacity: f64§object_priority: f64§remaining_lifetime: f64§replication_need: f64§battery_cost: f64§storage_pressure: f64§transport_reliability: f64Trait Implementations§
Source§impl Clone for ScoreWeights
impl Clone for ScoreWeights
Source§fn clone(&self) -> ScoreWeights
fn clone(&self) -> ScoreWeights
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScoreWeights
impl Debug for ScoreWeights
Auto Trait Implementations§
impl Freeze for ScoreWeights
impl RefUnwindSafe for ScoreWeights
impl Send for ScoreWeights
impl Sync for ScoreWeights
impl Unpin for ScoreWeights
impl UnsafeUnpin for ScoreWeights
impl UnwindSafe for ScoreWeights
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