pub struct Nop<T> { /* private fields */ }
Expand description
Block which performs no operation on the received data and simply sends it out unchanged
This block mostly serves documentation purposes but may also be used to
(re-)connect multiple Receiver
s at once.
Note that most blocks don’t work with T
but Samples<T>
or
Samples<Complex<Flt>>
.
Implementations
Trait Implementations
sourceimpl<T> Consumer<T> for Nop<T>
impl<T> Consumer<T> for Nop<T>
sourcefn receiver_connector(&self) -> &ReceiverConnector<T>
fn receiver_connector(&self) -> &ReceiverConnector<T>
Obtain reference to
ReceiverConnector
sourcefn feed_from_none(&self)
fn feed_from_none(&self)
Disconnect
Consumer
from any connected Producer
if connectedsourcefn connect_to_producer<P: Producer<T>>(&self, producer: &P)
fn connect_to_producer<P: Producer<T>>(&self, producer: &P)
👎Deprecated since 0.2.0: method has been renamed to
feed_from
Connect
Consumer
to Producer
sourcefn disconnect_from_producer(&self)
fn disconnect_from_producer(&self)
👎Deprecated since 0.2.0: method has been renamed to
feed_from_none
Disconnect
Consumer
from any connected Producer
if connectedsourceimpl<T> Producer<T> for Nop<T>
impl<T> Producer<T> for Nop<T>
sourcefn sender_connector(&self) -> &SenderConnector<T>
fn sender_connector(&self) -> &SenderConnector<T>
Obtain reference to
SenderConnector
sourcefn connect_to_consumer<C: Consumer<T>>(&self, consumer: &C)
fn connect_to_consumer<C: Consumer<T>>(&self, consumer: &C)
👎Deprecated since 0.2.0: method has been renamed to
feed_into
Connect
Producer
to Consumer
Auto Trait Implementations
impl<T> !RefUnwindSafe for Nop<T>
impl<T> Send for Nop<T>where
T: Send,
impl<T> Sync for Nop<T>where
T: Send,
impl<T> Unpin for Nop<T>
impl<T> !UnwindSafe for Nop<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more