GuestMemorySliceIterator

Trait GuestMemorySliceIterator 

Source
pub trait GuestMemorySliceIterator<'a, B: BitmapSlice>:
    Iterator<Item = Result<VolatileSlice<'a, B>>>
    + FusedIterator
    + Sized {
    // Provided method
    fn stop_on_error(self) -> Result<impl Iterator<Item = VolatileSlice<'a, B>>> { ... }
}
Expand description

Iterates over VolatileSlices that together form an I/O memory area.

Returned by GuestMemory::get_slices().

Provided Methods§

Source

fn stop_on_error(self) -> Result<impl Iterator<Item = VolatileSlice<'a, B>>>

Adapts this GuestMemorySliceIterator to return None (e.g. gracefully terminate) when it encounters an error after successfully producing at least one slice. Return an error if requesting the first slice returns an error.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§