pub struct LoraSimOptions {
pub packet_loss: Option<f64>,
pub bandwidth_bps: Option<f64>,
pub base_latency_ms: Option<f64>,
}Fields§
§packet_loss: Option<f64>Per-packet drop probability ∈ [0, 1]. Default 0 (lossless).
bandwidth_bps: Option<f64>Bandwidth in bytes/sec. Default 250.
base_latency_ms: Option<f64>Base latency in ms. Default 5000.
Trait Implementations§
Source§impl Clone for LoraSimOptions
impl Clone for LoraSimOptions
Source§fn clone(&self) -> LoraSimOptions
fn clone(&self) -> LoraSimOptions
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 LoraSimOptions
impl Debug for LoraSimOptions
Source§impl Default for LoraSimOptions
impl Default for LoraSimOptions
Source§fn default() -> LoraSimOptions
fn default() -> LoraSimOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoraSimOptions
impl RefUnwindSafe for LoraSimOptions
impl Send for LoraSimOptions
impl Sync for LoraSimOptions
impl Unpin for LoraSimOptions
impl UnsafeUnpin for LoraSimOptions
impl UnwindSafe for LoraSimOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more