Skip to main content

FormatReadPlanStep

Enum FormatReadPlanStep 

Source
#[non_exhaustive]
pub enum FormatReadPlanStep<'a, S: Storage + 'static> {
#[non_exhaustive]
Raw { storage: &'a S, offset: u64, image_offset: u64, len: u64, writable: bool, },
#[non_exhaustive]
Zero { image_offset: u64, len: u64, explicit: bool, },
#[non_exhaustive]
Eof { image_offset: u64, len: u64, },
#[non_exhaustive]
Special { layer: &'a FormatAccess<S>, offset: u64, image_offset: u64, len: u64, }, }
Expand description

One step in a FormatReadPlan.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

#[non_exhaustive]
Raw

Range that can be read directly from a storage object.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§storage: &'a S

Storage object where this data is stored.

§offset: u64

Offset in storage where this data is stored.

§image_offset: u64

Offset in the requested image where this step starts.

§len: u64

Length of this step in bytes.

§writable: bool

Whether this raw mapping may be written to directly.

§

#[non_exhaustive]
Zero

Range that should be returned as zeroes.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§image_offset: u64

Offset in the requested image where this step starts.

§len: u64

Length of this step in bytes.

§explicit: bool

Whether these zeroes are explicit on the top format layer.

§

#[non_exhaustive]
Eof

Range beyond the image’s top-layer end of file.

Normal reads fill this range with zeroes.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§image_offset: u64

Offset in the requested image where this step starts.

§len: u64

Length of this step in bytes.

§

#[non_exhaustive]
Special

Range that must be interpreted by the image format driver.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§layer: &'a FormatAccess<S>

Format layer where this special data was encountered.

§offset: u64

Original offset on layer to pass to readv_special().

§image_offset: u64

Offset in the requested image where this step starts.

§len: u64

Length of this step in bytes.

Trait Implementations§

Source§

impl<'a, S: Debug + Storage + 'static> Debug for FormatReadPlanStep<'a, S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, S> !RefUnwindSafe for FormatReadPlanStep<'a, S>

§

impl<'a, S> !UnwindSafe for FormatReadPlanStep<'a, S>

§

impl<'a, S> Freeze for FormatReadPlanStep<'a, S>

§

impl<'a, S> Send for FormatReadPlanStep<'a, S>

§

impl<'a, S> Sync for FormatReadPlanStep<'a, S>

§

impl<'a, S> Unpin for FormatReadPlanStep<'a, S>

§

impl<'a, S> UnsafeUnpin for FormatReadPlanStep<'a, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more