pub struct BlobEntry<'a> {
    pub index: usize,
    pub slot: CodeSigningSlot,
    pub offset: usize,
    pub magic: CodeSigningMagic,
    pub length: usize,
    pub data: &'a [u8],
}
Expand description

Represents a single blob as defined by a SuperBlob index entry.

Instances have copies of their own index info, including the relative order, slot type, and start offset within the SuperBlob.

The blob data is unparsed in this type. The blob payloads can be turned into ParsedBlob via .try_into().

Fields

index: usize

Our blob index within the SuperBlob.

slot: CodeSigningSlot

The slot type.

offset: usize

Our start offset within the SuperBlob.

First byte is start of our magic.

magic: CodeSigningMagic

The magic value appearing at the beginning of the blob.

length: usize

The length of the blob payload.

data: &'a [u8]

The raw data in this blob, including magic and length.

Implementations

Attempt to convert to a ParsedBlob.

Compute the content digest of this blob using the specified hash type.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

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

Calls U::from(self).

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

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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