pub struct AdcDac { /* private fields */ }Trait Implementations§
Source§impl Payload for AdcDac
impl Payload for AdcDac
Source§fn new(batches: usize, data: &[u8]) -> Result<Self, FormatError>
fn new(batches: usize, data: &[u8]) -> Result<Self, FormatError>
Extract AdcDacData from a binary data block in the stream.
§Args
batch_size- The size of each batch in samples.data- The binary data composing the stream frame.
fn traces(&self) -> &[Vec<f32>]
fn traces_mut(&mut self) -> &mut [Vec<f32>]
fn labels(&self) -> &[&str]
Auto Trait Implementations§
impl Freeze for AdcDac
impl RefUnwindSafe for AdcDac
impl Send for AdcDac
impl Sync for AdcDac
impl Unpin for AdcDac
impl UnwindSafe for AdcDac
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