Struct gmt_dos_clients::signals::Signals
source · pub struct Signals {
pub signals: Vec<Signal>,
pub step: usize,
pub n_step: usize,
/* private fields */
}
Expand description
Multiplex signals generator
Fields§
§signals: Vec<Signal>
§step: usize
§n_step: usize
Implementations§
source§impl Signals
impl Signals
sourcepub fn new(n: usize, n_step: usize) -> Self
pub fn new(n: usize, n_step: usize) -> Self
Create a signal generator with n
channels for n_step
iterations
Each channel is set to 0 valued Signal::Constant
sourcepub fn signals(self, signal: Signal) -> Self
👎Deprecated: please use channels
instead
pub fn signals(self, signal: Signal) -> Self
channels
insteadSets the same Signal for all outputs
sourcepub fn output_signal(self, k: usize, output_signal: Signal) -> Self
👎Deprecated: please use channel
instead
pub fn output_signal(self, k: usize, output_signal: Signal) -> Self
channel
insteadSets the Signal of output #k
Trait Implementations§
impl TimerMarker for Signals
Auto Trait Implementations§
impl Freeze for Signals
impl RefUnwindSafe for Signals
impl Send for Signals
impl Sync for Signals
impl Unpin for Signals
impl UnwindSafe for Signals
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