pub enum Chunk<'a> {
Start(File),
IntermediateOrEnd(Record<'a>),
}Expand description
A chunk of real-time data within a volume. Chunks are ordered and when concatenated together form a complete volume of radar data. All chunks contain an LDM record with radar data messages.
Variants§
Start(File)
The start of a new volume. This chunk will begin with an Archive II volume header followed by a compressed LDM record.
IntermediateOrEnd(Record<'a>)
An intermediate or end chunk. This chunk will contain a compressed LDM record with radar data messages.
Implementations§
Source§impl Chunk<'_>
impl Chunk<'_>
Sourcepub fn new(data: Vec<u8>) -> Result<Self>
pub fn new(data: Vec<u8>) -> Result<Self>
Creates a new chunk from the provided data. The data is expected to be in one of two formats:
- An Archive II volume header followed by a compressed LDM record, or a “start” chunk.
- A compressed LDM record, or an “intermediate” or “end” chunk.
The chunk type is determined by the data’s format.
Trait Implementations§
impl<'a> Eq for Chunk<'a>
impl<'a> StructuralPartialEq for Chunk<'a>
Auto Trait Implementations§
impl<'a> Freeze for Chunk<'a>
impl<'a> RefUnwindSafe for Chunk<'a>
impl<'a> Send for Chunk<'a>
impl<'a> Sync for Chunk<'a>
impl<'a> Unpin for Chunk<'a>
impl<'a> UnsafeUnpin for Chunk<'a>
impl<'a> UnwindSafe for Chunk<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.