pub struct TransportScoreFactors {
pub signal: f32,
pub proximity: f32,
pub bandwidth: f32,
pub congestion: f32,
pub energy: f32,
pub reliability: f32,
pub load: f32,
pub total: f32,
}Expand description
Named-field factors accepted by TransportScore::from_factors.
Using named fields prevents the silent-misorder bug that an N-arg
positional constructor would invite (every factor is f32).
Fields§
§signal: f32Signal strength score (0-100).
proximity: f32Proximity/hop distance score (0-100).
bandwidth: f32Available bandwidth score (0-100).
congestion: f32Congestion score (0-100, higher is less congested).
energy: f32Energy efficiency score (0-100).
reliability: f32Reliability score (0-100).
load: f32Load score (0-100, higher = more capacity available).
total: f32Total weighted score.
Trait Implementations§
Source§impl Clone for TransportScoreFactors
impl Clone for TransportScoreFactors
Source§impl Debug for TransportScoreFactors
impl Debug for TransportScoreFactors
Auto Trait Implementations§
impl Freeze for TransportScoreFactors
impl RefUnwindSafe for TransportScoreFactors
impl Send for TransportScoreFactors
impl Sync for TransportScoreFactors
impl Unpin for TransportScoreFactors
impl UnsafeUnpin for TransportScoreFactors
impl UnwindSafe for TransportScoreFactors
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