pub struct ChunkIdentifier { /* private fields */ }Expand description
Identifies a volume chunk within the real-time NEXRAD data bucket. These chunks are uploaded every few seconds and contain a portion of the radar data for a specific volume.
Implementations§
Source§impl ChunkIdentifier
impl ChunkIdentifier
Sourcepub fn new(
site: String,
volume: VolumeIndex,
name: String,
date_time: Option<DateTime<Utc>>,
) -> Self
pub fn new( site: String, volume: VolumeIndex, name: String, date_time: Option<DateTime<Utc>>, ) -> Self
Creates a new chunk identifier.
Sourcepub fn with_sequence(&self, sequence: usize) -> Self
pub fn with_sequence(&self, sequence: usize) -> Self
Creates a new chunk identifier with the given sequence number. The chunk type will be inferred from the sequence and date/time will be omitted since it is unknown.
Sourcepub fn volume(&self) -> &VolumeIndex
pub fn volume(&self) -> &VolumeIndex
The chunk’s rotating volume index.
Sourcepub fn name_prefix(&self) -> &str
pub fn name_prefix(&self) -> &str
The chunk’s name prefix.
Sourcepub fn chunk_type(&self) -> Option<ChunkType>
pub fn chunk_type(&self) -> Option<ChunkType>
The position of this chunk within the volume.
Sourcepub fn next_chunk(&self) -> Option<NextChunk>
pub fn next_chunk(&self) -> Option<NextChunk>
Identifies the next chunk’s expected location.
Trait Implementations§
Source§impl Clone for ChunkIdentifier
impl Clone for ChunkIdentifier
Source§fn clone(&self) -> ChunkIdentifier
fn clone(&self) -> ChunkIdentifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkIdentifier
impl Debug for ChunkIdentifier
Source§impl Hash for ChunkIdentifier
impl Hash for ChunkIdentifier
Source§impl PartialEq for ChunkIdentifier
impl PartialEq for ChunkIdentifier
Source§fn eq(&self, other: &ChunkIdentifier) -> bool
fn eq(&self, other: &ChunkIdentifier) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ChunkIdentifier
impl StructuralPartialEq for ChunkIdentifier
Auto Trait Implementations§
impl Freeze for ChunkIdentifier
impl RefUnwindSafe for ChunkIdentifier
impl Send for ChunkIdentifier
impl Sync for ChunkIdentifier
impl Unpin for ChunkIdentifier
impl UnsafeUnpin for ChunkIdentifier
impl UnwindSafe for ChunkIdentifier
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.