pub struct ContinuousF32BeWriter { /* private fields */ }
Expand description
Implementations
sourceimpl ContinuousF32BeWriter
impl ContinuousF32BeWriter
sourcepub fn new<W>(writer: W) -> Selfwhere
W: Write + Send + 'static,
pub fn new<W>(writer: W) -> Selfwhere
W: Write + Send + 'static,
Create ContinuousF32BeWriter
, which writes all samples to the given
writer
sourcepub fn with_path<P: AsRef<Path>>(path: P) -> Self
pub fn with_path<P: AsRef<Path>>(path: P) -> Self
Create ContinuousF32BeWriter
, which writes all samples to a file
sourcepub async fn wait(self) -> Result<bool, ContinuousWriterError>
pub async fn wait(self) -> Result<bool, ContinuousWriterError>
Wait for stream to finish
Returns Ok(true)
if connected Producer
indicated completion
through Sender::finish
(RecvError::Finished
).
Returns Ok(false)
if operation could not complete because no
Producer
is connected.
sourcepub async fn stop(self) -> Result<bool, ContinuousWriterError>
pub async fn stop(self) -> Result<bool, ContinuousWriterError>
Stop operation
Returns Ok(true)
if connected Producer
indicated completion
through Sender::finish
(RecvError::Finished
).
Returns Ok(false)
if operation was stopped before.
Trait Implementations
sourceimpl Consumer<Samples<Complex<f32>>> for ContinuousF32BeWriter
impl Consumer<Samples<Complex<f32>>> for ContinuousF32BeWriter
sourcefn receiver_connector(&self) -> &ReceiverConnector<Samples<Complex<f32>>>
fn receiver_connector(&self) -> &ReceiverConnector<Samples<Complex<f32>>>
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 connectedAuto Trait Implementations
impl !RefUnwindSafe for ContinuousF32BeWriter
impl Send for ContinuousF32BeWriter
impl Sync for ContinuousF32BeWriter
impl Unpin for ContinuousF32BeWriter
impl !UnwindSafe for ContinuousF32BeWriter
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