Function sequential_storage::queue::peek
source · pub fn peek<S: MultiwriteNorFlash, const CAP: usize>(
flash: &mut S,
flash_range: Range<u32>
) -> Result<Option<ArrayVec<u8, CAP>>, Error<S::Error>>
Expand description
Peek at the oldest data.
If you also want to remove the data use pop.
The given CAP
determines the buffer size with which is read.
An error is returned if the oldest data is longer than CAP
.