[][src]Struct rosbag::RecordsIterator

pub struct RecordsIterator<'a> { /* fields omitted */ }

Low-level iterator over records extracted from ROS bag file.

Methods

impl<'a> RecordsIterator<'a>[src]

pub fn seek(&mut self, pos: u64) -> Result<()>[src]

Jump to the given position in the file.

Be carefull to jump only to record beginnings (e.g. to position listed in BagHeader or ChunkInfo records), as incorrect offset position will result in error on the next iteration and in the worst case scenario to a long blocking (programm will try to read a huge chunk of data).

Trait Implementations

impl<'a> Iterator for RecordsIterator<'a>[src]

type Item = Result<Record<'a>>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> Send for RecordsIterator<'a>

impl<'a> Sync for RecordsIterator<'a>

impl<'a> Unpin for RecordsIterator<'a>

impl<'a> UnwindSafe for RecordsIterator<'a>

impl<'a> RefUnwindSafe for RecordsIterator<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]