Function set_latency_sensitivity

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub fn set_latency_sensitivity(value: u32) -> Result<(), String>

Sets latency sensitivity on the current (top) scope using max-merge semantics.

If the current scope already has a latency_sensitivity value, the new value is only applied if it is greater than the existing one.

Parameters

  • value: New non-negative latency sensitivity hint (>= 0) for the current top scope.

Returns

Ok(()) when the current scope metadata has been updated or left unchanged.

Errors

Returns an error string when the scope stack lock is poisoned.

Notes

Existing non-negative latency sensitivity values are updated using max-merge semantics.