Struct nexrad_data::volume::Record
source · pub struct Record<'a>(/* private fields */);Expand description
Represents a single LDM record with its data which may be compressed.
The Unidata Local Data Manager (LDM) is a data distribution system used by the NWS to distribute NEXRAD archival radar data. A NEXRAD “Archive II” file starts with an crate::volume::Header followed by a series of compressed LDM records, each containing messages with radar data.
Implementations§
source§impl<'a> Record<'a>
impl<'a> Record<'a>
sourcepub fn from_slice(data: &'a [u8]) -> Self
pub fn from_slice(data: &'a [u8]) -> Self
Creates a new LDM record with the provided data slice.
sourcepub fn compressed(&self) -> bool
pub fn compressed(&self) -> bool
Whether this LDM record’s data is compressed.
sourcepub fn decompress<'b>(&self) -> Result<Record<'b>>
pub fn decompress<'b>(&self) -> Result<Record<'b>>
Decompresses this LDM record’s data.
sourcepub fn messages(&self) -> Result<Vec<MessageWithHeader>>
pub fn messages(&self) -> Result<Vec<MessageWithHeader>>
Decodes the NEXRAD level II messages contained in this LDM record.
Auto Trait Implementations§
impl<'a> Freeze for Record<'a>
impl<'a> RefUnwindSafe for Record<'a>
impl<'a> Send for Record<'a>
impl<'a> Sync for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> UnwindSafe for Record<'a>
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