pub struct TdmsFile { /* private fields */ }Expand description
A TDMS file handle for reading.
This struct indexes the file structure (groups, channels, properties) on open without loading raw data into memory.
Implementations§
Source§impl TdmsFile
impl TdmsFile
Sourcepub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn open(path: impl AsRef<Path>) -> Result<Self>
Open a TDMS file for reading.
This parses and indexes all segment metadata eagerly, but does not read raw channel data until it is requested.
Sourcepub fn property(&self, name: &str) -> Option<&PropertyValue>
pub fn property(&self, name: &str) -> Option<&PropertyValue>
Look up a file-level property by name.
Sourcepub fn properties(&self) -> impl Iterator<Item = (&str, &PropertyValue)>
pub fn properties(&self) -> impl Iterator<Item = (&str, &PropertyValue)>
Iterate over all file-level properties.
Auto Trait Implementations§
impl Freeze for TdmsFile
impl RefUnwindSafe for TdmsFile
impl Send for TdmsFile
impl Sync for TdmsFile
impl Unpin for TdmsFile
impl UnwindSafe for TdmsFile
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