pub struct ProfileReader<'v, 'a> { /* private fields */ }Expand description
A nonforgeable shared admission for the current EMF registry. Opening does not validate every payload; each chunk call verifies and admits that selected chunk. The caller may retain immutable returned chunks for hot access without rehashing.
Implementations§
Source§impl<'v, 'a> ProfileReader<'v, 'a>
impl<'v, 'a> ProfileReader<'v, 'a>
pub fn open( view: &'v StructuralView<'a>, scratch: &mut Scratch<'_>, limits: Limits, total_payload_work: u64, ) -> Result<Self, Error>
pub fn entry_count(&self) -> u32
pub fn remaining_payload_work(&self) -> u64
Sourcepub fn chunk(&mut self, entry_index: u32) -> Result<ProfileChunk<'a>, Error>
pub fn chunk(&mut self, entry_index: u32) -> Result<ProfileChunk<'a>, Error>
Charge a conservative aggregate budget before hashing/scanning any payload. Three units per stored byte cover selected digest/record scan plus a validity mask (one byte per record, no larger than the selected raw payload). Per-chunk limits and shared graph/reference work limits also remain enforced. Failed calls consume their admitted budget rather than permitting unlimited retries.
Auto Trait Implementations§
impl<'v, 'a> !Freeze for ProfileReader<'v, 'a>
impl<'v, 'a> !RefUnwindSafe for ProfileReader<'v, 'a>
impl<'v, 'a> !Sync for ProfileReader<'v, 'a>
impl<'v, 'a> Send for ProfileReader<'v, 'a>
impl<'v, 'a> Unpin for ProfileReader<'v, 'a>
impl<'v, 'a> UnsafeUnpin for ProfileReader<'v, 'a>
impl<'v, 'a> UnwindSafe for ProfileReader<'v, 'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more