Struct nexrad_data::aws::realtime::ChunkIdentifier
source · 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChunkIdentifier
impl RefUnwindSafe for ChunkIdentifier
impl Send for ChunkIdentifier
impl Sync for ChunkIdentifier
impl Unpin 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)