File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ pub type LossPattern = Vec<f64>;
146
146
///
147
147
/// The next_bw function either returns **the next bandwidth and its duration**
148
148
/// in the sequence, or **None** if the trace goes to end.
149
- pub trait BwTrace {
149
+ pub trait BwTrace : Send {
150
150
fn next_bw ( & mut self ) -> Option < ( Bandwidth , Duration ) > ;
151
151
}
152
152
@@ -161,7 +161,7 @@ pub trait BwTrace {
161
161
///
162
162
/// The next_delay function either returns **the next delay and its duration**
163
163
/// in the sequence, or **None** if the trace goes to end.
164
- pub trait DelayTrace {
164
+ pub trait DelayTrace : Send {
165
165
fn next_delay ( & mut self ) -> Option < ( Delay , Duration ) > ;
166
166
}
167
167
@@ -173,7 +173,7 @@ pub trait DelayTrace {
173
173
///
174
174
/// The next_loss function either returns **the next loss_pattern and its duration**
175
175
/// in the sequence, or **None** if the trace goes to end.
176
- pub trait LossTrace {
176
+ pub trait LossTrace : Send {
177
177
fn next_loss ( & mut self ) -> Option < ( LossPattern , Duration ) > ;
178
178
}
179
179
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ const DEFAULT_RNG_SEED: u64 = 42;
69
69
/// separate the configuration part into a simple struct for serialization/deserialization, and
70
70
/// construct the model from the configuration.
71
71
#[ cfg_attr( feature = "serde" , typetag:: serde) ]
72
- pub trait BwTraceConfig : DynClone {
72
+ pub trait BwTraceConfig : DynClone + Send {
73
73
fn into_model ( self : Box < Self > ) -> Box < dyn BwTrace > ;
74
74
}
75
75
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ use dyn_clone::DynClone;
63
63
/// separate the configuration part into a simple struct for serialization/deserialization, and
64
64
/// construct the model from the configuration.
65
65
#[ cfg_attr( feature = "serde" , typetag:: serde) ]
66
- pub trait DelayTraceConfig : DynClone {
66
+ pub trait DelayTraceConfig : DynClone + Send {
67
67
fn into_model ( self : Box < Self > ) -> Box < dyn DelayTrace > ;
68
68
}
69
69
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ use dyn_clone::DynClone;
63
63
/// separate the configuration part into a simple struct for serialization/deserialization, and
64
64
/// construct the model from the configuration.
65
65
#[ cfg_attr( feature = "serde" , typetag:: serde) ]
66
- pub trait LossTraceConfig : DynClone {
66
+ pub trait LossTraceConfig : DynClone + Send {
67
67
fn into_model ( self : Box < Self > ) -> Box < dyn LossTrace > ;
68
68
}
69
69
You can’t perform that action at this time.
0 commit comments