pub struct FileSink<T: Send + 'static> { /* private fields */ }
Expand description
Write samples to a file.
Samples are encoded using the in-memory format of the machine the runtime is running on, like for FileSource. For most machines, this means little endian. Complex numbers are written with the real component coming before the complex component.
Inputs
in
: Input
Outputs
No outputs.
Usage
use futuresdr::blocks::FileSink;
use futuresdr::runtime::Flowgraph;
use num_complex::Complex;
let mut fg = Flowgraph::new();
let sink = fg.add_block(FileSink::<Complex<f32>>::new("my_sink_filename.cf32"));
Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for FileSink<T>
impl<T> Send for FileSink<T>
impl<T> Sync for FileSink<T>where
T: Sync,
impl<T> Unpin for FileSink<T>where
T: Unpin,
impl<T> !UnwindSafe for FileSink<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